Browse Source

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.
Daniel Bertalan 3 years ago
parent
commit
a99685ece7
1 changed files with 1 additions and 5 deletions
  1. 1 5
      Userland/Libraries/LibC/shadow.h

+ 1 - 5
Userland/Libraries/LibC/shadow.h

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