diff options
author | Karel Gardas <karel.gardas@centrum.cz> | 2015-02-05 17:35:45 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2015-02-05 17:35:45 -0600 |
commit | 78216e227dfb069d3eda804799f1f96716320a1b (patch) | |
tree | 7d6c67799097921bb5d51e78e4fd1f3bcbe98720 /libraries/base/include/WCsubst.h | |
parent | daed18c35cda114d8a5303bcb645195e1fd397e3 (diff) | |
download | haskell-78216e227dfb069d3eda804799f1f96716320a1b.tar.gz |
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
Diffstat (limited to 'libraries/base/include/WCsubst.h')
-rw-r--r-- | libraries/base/include/WCsubst.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/include/WCsubst.h b/libraries/base/include/WCsubst.h index 4ad373ace8..11bedb6be2 100644 --- a/libraries/base/include/WCsubst.h +++ b/libraries/base/include/WCsubst.h @@ -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); |