[MLton-commit] r5901
Ville Laurikari
ville at mlton.org
Mon Aug 20 05:00:09 PDT 2007
Solaris 8 does not have PRIuPTR.
----------------------------------------------------------------------
U mlton/trunk/runtime/platform/solaris.h
----------------------------------------------------------------------
Modified: mlton/trunk/runtime/platform/solaris.h
===================================================================
--- mlton/trunk/runtime/platform/solaris.h 2007-08-20 11:24:55 UTC (rev 5900)
+++ mlton/trunk/runtime/platform/solaris.h 2007-08-20 12:00:09 UTC (rev 5901)
@@ -60,6 +60,10 @@
int fpclassify32 (float f);
int fpclassify64 (double d);
+#ifndef PRIuPTR
+#define PRIuPTR "u"
+#endif
+
#ifndef PRIxPTR
#define PRIxPTR "x"
#endif
@@ -78,7 +82,7 @@
#define AF_INET6 26 /* Internet Protocol, Version 6 */
#define PF_INET6 AF_INET6
-struct sockaddr_in6 {
+struct sockaddr_in6 {
int dummy; // quell gcc warnings about "struct has no members"
};
struct sockaddr_storage {
More information about the MLton-commit
mailing list