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:
parent
b9c753f6f9
commit
a99685ece7
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue