[Toybox] [PATCH] macOS: there's no <features.h> on the Mac.

enh enh at google.com
Wed Nov 28 16:30:42 PST 2018


---
 lib/portability.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/portability.h b/lib/portability.h
index c2b29b6..427b851 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -22,9 +22,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
-- 
2.19.0.605.g01d371f741-goog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-macOS-there-s-no-features.h-on-the-Mac.patch
Type: application/octet-stream
Size: 948 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20181128/bec45ec3/attachment-0002.obj>


More information about the Toybox mailing list