Commit 78216e22 authored by kgardas's avatar kgardas Committed by Austin Seipp

fix _FILE_OFFSET_BITS redefined warning on Solaris/i386 platform

Summary:
The problem with Solaris is that system header files include
/usr/include/sys/feature_tests.h header file and it tests if
_FILE_OFFSET_BITS define is defined. If not, it defines it to 32
which is in conflict with 64 which we need for large file support.
The solution is easy, always include own header files before system header
files.

Reviewers: hvr, austin

Reviewed By: austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D644
parent daed18c3
......@@ -2,8 +2,8 @@
#define WCSUBST_INCL
#include <stdlib.h>
#include "HsFFI.h"
#include <stdlib.h>
HsInt u_iswupper(HsInt wc);
HsInt u_iswdigit(HsInt wc);
......
......@@ -9,6 +9,9 @@
#define _ISOC99_SOURCE
#include "HsFFI.h"
#include "MachDeps.h"
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
......@@ -20,8 +23,6 @@
#include <gmp.h>
#include "HsFFI.h"
#include "MachDeps.h"
// GMP 4.x compatibility
#if !defined(__GNU_MP_VERSION)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment