[MLton-commit] r7473
Matthew Fluet
fluet at mlton.org
Fri May 28 11:00:11 PDT 2010
Cygwin 1.7 has MSG_DONTWAIT.
----------------------------------------------------------------------
U mlton/trunk/runtime/platform/cygwin.c
U mlton/trunk/runtime/platform/cygwin.h
----------------------------------------------------------------------
Modified: mlton/trunk/runtime/platform/cygwin.c
===================================================================
--- mlton/trunk/runtime/platform/cygwin.c 2010-05-28 17:41:17 UTC (rev 7472)
+++ mlton/trunk/runtime/platform/cygwin.c 2010-05-28 18:00:11 UTC (rev 7473)
@@ -3,7 +3,9 @@
#include "platform.h"
#include "mmap.c"
+#if not HAS_MSG_DONTWAIT
#include "recv.nonblock.c"
+#endif
#include "windows.c"
#include "mremap.c"
Modified: mlton/trunk/runtime/platform/cygwin.h
===================================================================
--- mlton/trunk/runtime/platform/cygwin.h 2010-05-28 17:41:17 UTC (rev 7472)
+++ mlton/trunk/runtime/platform/cygwin.h 2010-05-28 18:00:11 UTC (rev 7473)
@@ -35,7 +35,6 @@
#define HAS_FEROUND FALSE
#define HAS_FPCLASSIFY TRUE
-#define HAS_MSG_DONTWAIT FALSE
#define HAS_REMAP TRUE
#define HAS_SIGALTSTACK FALSE
#define HAS_SIGNBIT TRUE
@@ -43,8 +42,11 @@
#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
More information about the MLton-commit
mailing list