diff options
author | Naohisa Goto <ngotogenome@gmail.com> | 2021-11-29 23:46:48 +0900 |
---|---|---|
committer | Naohisa Goto <ngotogenome@gmail.com> | 2021-11-30 00:03:04 +0900 |
commit | 8287d2f23c06c614d1ae83b6e0dad48bcda622cb (patch) | |
tree | d78fe726e7beb324cae25fa8c2f423764e2e5cb3 /configure.ac | |
parent | 67a1e2258974df4b597d019739595c18fbb9a7c1 (diff) |
Workaround for implicit declaration of function 'madvise' on Solaris
On Solaris, madvise(3C) is NOT defined for SUS (XPG4v2) or later,
but MADV_* macros are defined when __EXTENSIONS__ is defined.
This may cause compile error on Solaris 10 with GCC when
"-Werror=implicit-function-declaration" and "-D_XOPEN_SOURCE=600"
are added by configure.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 66a7a9e2b0..4b495371d4 100644 --- a/configure.ac +++ b/configure.ac @@ -1107,6 +1107,7 @@ main() RUBY_APPEND_OPTIONS(CXXFLAGS, -U_XOPEN_SOURCE) ]) ]) + AC_CHECK_TYPES([caddr_t],[],[],[@%:@include <sys/types.h>]) ], [haiku*], [ LIBS="$LIBS" # m lib is include in root |