Skip to content
Snippets Groups Projects
Commit 1b53296f authored by kgardas's avatar kgardas Committed by Herbert Valerio Riedel
Browse files

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.
parent bc4bd179
No related branches found
No related tags found
No related merge requests found
......@@ -19,12 +19,12 @@ module System.Posix.SharedMem
(ShmOpenFlags(..), shmOpen, shmUnlink)
where
#include "HsUnix.h"
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>
#include "HsUnix.h"
import System.Posix.Types
#if defined(HAVE_SHM_OPEN) || defined(HAVE_SHM_UNLINK)
import Foreign.C
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment