]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/wrappers/_libkernel_init.c
xnu-4570.1.46.tar.gz
[apple/xnu.git] / libsyscall / wrappers / _libkernel_init.c
index 16d7e19176f0927029c1835d650215ada3d68319..3eb67853d09d5ed6d3fb888da03b1e780adf6271 100644 (file)
  * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
  */
 
+#include <TargetConditionals.h>
+#include <stdbool.h>
+#include <strings.h>
+#include <unistd.h>
 #include "_libkernel_init.h"
 
 extern int mach_init(void);
 
+#if TARGET_OS_OSX
+__attribute__((visibility("default")))
+extern bool _os_xbs_chrooted;
+bool _os_xbs_chrooted;
+#endif
+
 /* dlsym() funcptr is for legacy support in exc_catcher */
 void* (*_dlsym)(void*, const char*) __attribute__((visibility("hidden")));