From: benl@cse.unsw.edu.au Date: Wed, 3 Feb 2010 07:09:57 +0000 (+0000) Subject: On Solaris, _FILE_OFFSET_BITS must be defined before including sys/stat.h X-Git-Tag: ghc-darcs-git-switchover~12 X-Git-Url: http://git.megacz.com/?p=haskell-directory.git;a=commitdiff_plain;h=277a9e46ab403722488b4bee7958751195fe012d;hp=8ba5e95fc14cdaef89980bae2bf5be01fea9757a On Solaris, _FILE_OFFSET_BITS must be defined before including sys/stat.h --- diff --git a/include/HsDirectory.h b/include/HsDirectory.h index b58cfb2..608b3aa 100644 --- a/include/HsDirectory.h +++ b/include/HsDirectory.h @@ -12,6 +12,12 @@ #ifdef __NHC__ #include "Nhc98BaseConfig.h" #else + +// On Solaris we have to make sure _FILE_OFFSET_BITS is defined +// before including 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: