aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2021-09-27 20:38:41 -0500
committerRob Landley <rob@landley.net>2021-09-27 20:38:41 -0500
commit7af571d485b7baa659919b7e1716e06fc24052a5 (patch)
treec7ba80c7a1b03c5a486225a276a195a867be4189 /lib
parent3065c604d821de06ff6acae37fc0de4e6248e1e4 (diff)
downloadtoybox-7af571d485b7baa659919b7e1716e06fc24052a5.tar.gz
Move the sys/personality.h import Mac can't do into portability.h.
(Need to test this on FreeBSD too...)
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h
index 63d8251c..d7f163a3 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -193,6 +193,13 @@ void *memmem(const void *haystack, size_t haystack_length,
#endif
#endif
+#ifdef __linux__
+#include <sys/personality.h>
+#else
+#define LINUX_PER32 0
+void personality(int x);
+#endif
+
#if defined(__APPLE__) || defined(__linux__)
// Linux and macOS has both have getxattr and friends in <sys/xattr.h>, but
// they aren't compatible.