#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define MLton_Platform_OS_host "cygwin" #define HAS_FEROUND FALSE #define HAS_REMAP TRUE #define HAS_SHRINK_HEAP TRUE #define HAS_SIGALTSTACK FALSE #define NEEDS_SIGALTSTACK_EXEC FALSE #define HAS_SPAWN TRUE #define HAS_TIME_PROFILING FALSE #ifndef MSG_DONTWAIT #define HAS_MSG_DONTWAIT FALSE /* This should not conflict with existing flags. */ #define MSG_DONTWAIT 0x1000000 #else #define HAS_MSG_DONTWAIT TRUE #endif #define SPAWN_MODE _P_NOWAIT /* Cygwin does not handle IPv6. */ #ifndef AF_INET6 #define AF_INET6 23 /* Internet Protocol, Version 6 */ #define PF_INET6 AF_INET6 struct sockaddr_in6 { int dummy; // quell gcc warnings about "struct has no members" }; /* Cygwin does provide sockaddr_storage. */ #endif typedef unsigned int nfds_t; typedef long suseconds_t; // type of timeval.tv_usec in sys/time.h #ifndef MSG_WAITALL // Unimplemented on Cygwin #define MSG_WAITALL 0 #endif #ifndef MSG_EOR // Unimplemented on Cygwin #define MSG_EOR 0 #endif