1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:24:57 +00:00

LibC: Remove #ifdef AK_OS_MACOS checks from shadow.h

These checks were added because macOS doesn't have `shadow.h`, so we
would end up including our own LibC's `shadow.h` when we built Lagom.

All inclusions of this header in our code base are now guarded by
`#ifndef AK_OS_BSD_GENERIC`, so these checks are now pointless.
This commit is contained in:
Daniel Bertalan 2022-01-08 15:48:32 +01:00 committed by Linus Groh
parent b9c753f6f9
commit a99685ece7

View file

@ -6,9 +6,7 @@
#pragma once
#ifndef AK_OS_MACOS
# include <bits/FILE.h>
#endif
#include <bits/FILE.h>
#include <sys/cdefs.h>
#include <sys/types.h>
@ -26,7 +24,6 @@ struct spwd {
unsigned long int sp_flag;
};
#ifndef AK_OS_MACOS
struct spwd* getspent(void);
void setspent(void);
void endspent(void);
@ -38,6 +35,5 @@ int getspnam_r(const char* name, struct spwd* spbuf, char* buf, size_t buflen, s
int fgetspent_r(FILE* fp, struct spwd* spbuf, char* buf, size_t buflen, struct spwd** spbufp);
int sgetspent_r(const char* s, struct spwd* spbuf, char* buf, size_t buflen, struct spwd** spbufp);
#endif
__END_DECLS