From 890909a6d0ec2fa7f55afd22aa142b4b3d5f156a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 30 Nov 2018 13:31:33 -0800 Subject: macOS: work around header idiosyncracies. --- lib/portability.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/portability.h') diff --git a/lib/portability.h b/lib/portability.h index 3f841bac..21d0b8a1 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -147,7 +147,17 @@ int clearenv(void); // Linux headers not listed by POSIX or LSB #include +#ifdef __linux__ +#include #include +#include +#endif + +#ifdef __APPLE__ +#include +#else +#include +#endif // Android is missing some headers and functions // "generated/config.h" is included first -- cgit v1.2.3