From a99685ece786cdefcb99501a539462f9e63ac66d Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Sat, 8 Jan 2022 15:48:32 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibC/shadow.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Userland/Libraries/LibC/shadow.h b/Userland/Libraries/LibC/shadow.h index 2853db4b62..a766451f7e 100644 --- a/Userland/Libraries/LibC/shadow.h +++ b/Userland/Libraries/LibC/shadow.h @@ -6,9 +6,7 @@ #pragma once -#ifndef AK_OS_MACOS -# include -#endif +#include #include #include @@ -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