11 #include <netinet/in.h>
12 #include <netinet/tcp.h>
13 #include <netinet/udp.h>
15 #include <sys/ioctl.h>
18 #include <sys/ptrace.h>
19 #include <sys/socket.h>
21 #include <sys/sysctl.h>
23 #include <sys/resource.h> /* <sys/resource.h> might not #include <sys/time.h> */
24 #include <sys/times.h>
26 #include <sys/utsname.h>
30 #include <sys/ucontext.h>
33 #include <crt_externs.h>
35 #define HAS_FEROUND TRUE
36 #define HAS_MSG_DONTWAIT TRUE
37 #define HAS_REMAP FALSE
38 #define HAS_SIGALTSTACK TRUE
39 #define NEEDS_SIGALTSTACK_EXEC FALSE
40 #define HAS_SPAWN FALSE
41 #define HAS_TIME_PROFILING TRUE
43 #define MLton_Platform_OS_host "darwin"
45 // MacOS only defines this if POSIX_C_SOURCE is defined.
46 // However, defining that breaks half the osx system headers.
47 // They couldn't possibly change the number at this point anyway.
52 /* for Posix_ProcEnv_environ */
53 #define environ *_NSGetEnviron()