From 277a9e46ab403722488b4bee7958751195fe012d Mon Sep 17 00:00:00 2001 From: "benl@cse.unsw.edu.au" Date: Wed, 3 Feb 2010 07:09:57 +0000 Subject: [PATCH] On Solaris, _FILE_OFFSET_BITS must be defined before including sys/stat.h --- include/HsDirectory.h | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 1.7.10.4