projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8ba5e95
)
On Solaris, _FILE_OFFSET_BITS must be defined before including sys/stat.h
author
benl@cse.unsw.edu.au
<unknown>
Wed, 3 Feb 2010 07:09:57 +0000
(07:09 +0000)
committer
benl@cse.unsw.edu.au
<unknown>
Wed, 3 Feb 2010 07:09:57 +0000
(07:09 +0000)
include/HsDirectory.h
patch
|
blob
|
history
diff --git
a/include/HsDirectory.h
b/include/HsDirectory.h
index
b58cfb2
..
608b3aa
100644
(file)
--- a/
include/HsDirectory.h
+++ b/
include/HsDirectory.h
@@
-12,6
+12,12
@@
#ifdef __NHC__
#include "Nhc98BaseConfig.h"
#else
#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:
#include "HsDirectoryConfig.h"
#endif
// Otherwise these clash with similar definitions from other packages: