10 #include <netinet/in.h>
11 #include <netinet/tcp.h>
12 #include <netinet/udp.h>
15 #include <sys/cygwin.h>
16 #include <sys/ioctl.h>
19 #include <sys/resource.h>
20 #include <sys/socket.h>
23 #include <sys/times.h>
25 #include <sys/utsname.h>
32 #include <cygwin/version.h>
34 #define MLton_Platform_OS_host "cygwin"
36 #define HAS_FEROUND FALSE
37 #define HAS_REMAP TRUE
38 #define HAS_SIGALTSTACK FALSE
39 #define NEEDS_SIGALTSTACK_EXEC FALSE
40 #define HAS_SPAWN TRUE
41 #define HAS_TIME_PROFILING FALSE
44 #define HAS_MSG_DONTWAIT FALSE
45 /* This should not conflict with existing flags. */
46 #define MSG_DONTWAIT 0x1000000
48 #define HAS_MSG_DONTWAIT TRUE
51 #define SPAWN_MODE _P_NOWAIT
53 /* Cygwin does not handle IPv6. */
56 #define AF_INET6 23 /* Internet Protocol, Version 6 */
57 #define PF_INET6 AF_INET6
60 int dummy
; // quell gcc warnings about "struct has no members"
63 /* Cygwin does provide sockaddr_storage. */
67 typedef unsigned int nfds_t
;
68 typedef long suseconds_t
; // type of timeval.tv_usec in sys/time.h
71 // Unimplemented on Cygwin
75 // Unimplemented on Cygwin