On Solaris, _FILE_OFFSET_BITS must be defined before including sys/stat.h
authorbenl@cse.unsw.edu.au <unknown>
Wed, 3 Feb 2010 07:09:57 +0000 (07:09 +0000)
committerbenl@cse.unsw.edu.au <unknown>
Wed, 3 Feb 2010 07:09:57 +0000 (07:09 +0000)
include/HsDirectory.h

index b58cfb2..608b3aa 100644 (file)
 #ifdef __NHC__
 #include "Nhc98BaseConfig.h"
 #else
+
+// On Solaris we have to make sure _FILE_OFFSET_BITS is defined 
+// before including <sys/stat.h> below, because that header
+// will try and define it if it isn't already.
+#include "HsFFI.h"
+
 #include "HsDirectoryConfig.h"
 #endif
 // Otherwise these clash with similar definitions from other packages: