[MLton-commit] r5899
Ville Laurikari
ville at mlton.org
Mon Aug 20 04:11:29 PDT 2007
Added compatibility code to make the runtime build on older systems:
Linux 2.2.x and glibc 2.1.x
----------------------------------------------------------------------
U mlton/trunk/runtime/platform/linux.h
----------------------------------------------------------------------
Modified: mlton/trunk/runtime/platform/linux.h
===================================================================
--- mlton/trunk/runtime/platform/linux.h 2007-08-20 11:06:49 UTC (rev 5898)
+++ mlton/trunk/runtime/platform/linux.h 2007-08-20 11:11:29 UTC (rev 5899)
@@ -41,3 +41,19 @@
#ifndef _GNU_SOURCE
extern char **environ; /* for Posix_ProcEnv_environ */
#endif
+
+/* The following is compatibility code with older glibc and kernel
+ versions. */
+
+#ifndef __suseconds_t_defined
+typedef __kernel_suseconds_t suseconds_t;
+#define __suseconds_t_defined
+#endif
+
+#if __GLIBC__ == 2 && __GLIBC_MINOR__ <= 1
+typedef unsigned long int nfds_t;
+#endif
+
+#ifndef SO_ACCEPTCONN
+#define SO_ACCEPTCONN 30
+#endif
More information about the MLton-commit
mailing list