fix _FILE_OFFSET_BITS redefined warning on Solaris/x86
authorKarel Gardas <karel.gardas@centrum.cz>
Fri, 25 Jul 2014 21:42:00 +0000 (23:42 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sat, 18 Oct 2014 14:54:28 +0000 (16:54 +0200)
commit1b53296fba0d36f6144c7797e96bf95b33a4cd7e
treee3042b3ae1b3ab7b1bd95f9925ace150f9a9ebcd
parentbc4bd179bda49b615a1c40df7402ddf80bf775b2
fix _FILE_OFFSET_BITS redefined warning on Solaris/x86

The issue is that sys/types.h header on Solaris includes somehow
/usr/include/sys/feature_tests.h which tests if _FILE_OFFSET_BITS
is defined and if not, then it defines it to 32 if we're compiling
32 bit code (x86). This is simply wrong since we'd like to have it
defined to 64. The issue is solved by including HsUnixConfig.h first
which defines _FILE_OFFSET_BITS to 64 and feature_tests.h is later
OK with that.
System/Posix/SharedMem.hsc