patches/ghc-unix-compat-01-solaris.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2475 5dd377e8e120
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2475
5dd377e8e120 2010-04-08 Mark Wright <[email protected]>
markwright
parents:
diff changeset
     1
--- unix-compat-0.1.2.1-orig/include/HsUnixCompat.h	2007-11-08 01:35:09.000000000 +1100
5dd377e8e120 2010-04-08 Mark Wright <[email protected]>
markwright
parents:
diff changeset
     2
+++ unix-compat-0.1.2.1/include/HsUnixCompat.h	2010-04-05 10:05:22.159630384 +1000
5dd377e8e120 2010-04-08 Mark Wright <[email protected]>
markwright
parents:
diff changeset
     3
@@ -1,5 +1,8 @@
5dd377e8e120 2010-04-08 Mark Wright <[email protected]>
markwright
parents:
diff changeset
     4
 #include "HsUnix.h"
5dd377e8e120 2010-04-08 Mark Wright <[email protected]>
markwright
parents:
diff changeset
     5
 #include <sys/types.h>
5dd377e8e120 2010-04-08 Mark Wright <[email protected]>
markwright
parents:
diff changeset
     6
+#if defined(__sun) && defined(__SVR4)
5dd377e8e120 2010-04-08 Mark Wright <[email protected]>
markwright
parents:
diff changeset
     7
+#include <sys/mkdev.h>
5dd377e8e120 2010-04-08 Mark Wright <[email protected]>
markwright
parents:
diff changeset
     8
+#endif
5dd377e8e120 2010-04-08 Mark Wright <[email protected]>
markwright
parents:
diff changeset
     9
 
5dd377e8e120 2010-04-08 Mark Wright <[email protected]>
markwright
parents:
diff changeset
    10
 unsigned int unix_major(dev_t dev);
5dd377e8e120 2010-04-08 Mark Wright <[email protected]>
markwright
parents:
diff changeset
    11
 unsigned int unix_minor(dev_t dev);