From 890909a6d0ec2fa7f55afd22aa142b4b3d5f156a Mon Sep 17 00:00:00 2001 From: Elliott Hughes <enh@google.com> 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') 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 <sys/mount.h> +#ifdef __linux__ +#include <sys/statfs.h> #include <sys/swap.h> +#include <sys/sysinfo.h> +#endif + +#ifdef __APPLE__ +#include <util.h> +#else +#include <pty.h> +#endif // Android is missing some headers and functions // "generated/config.h" is included first -- cgit v1.2.3