diff options
author | Elliott Hughes <enh@google.com> | 2018-11-28 16:22:32 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-11-28 19:21:19 -0600 |
commit | a38fcb7587d5be68656a7e9492617200249770c9 (patch) | |
tree | cfc3ed9d9a51e82531f49b0f8309bc4a56915daf /lib | |
parent | acfbb13661f425631ee7e7f01daa1eb2f3169945 (diff) | |
download | toybox-a38fcb7587d5be68656a7e9492617200249770c9.tar.gz |
macOS: there's no <features.h> on the Mac.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portability.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/portability.h b/lib/portability.h index 59430e1b..e6b542c4 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -20,9 +20,10 @@ // This isn't in the spec, but it's how we determine what libc we're using. -#include <features.h> - -// Types various replacement prototypes need +// Types various replacement prototypes need. +// This also lets us determine what libc we're using. Systems that +// have <features.h> will transitively include it, and ones that don't -- +// macOS -- won't break. #include <sys/types.h> // Various constants old build environments might not have even if kernel does |