Project

General

Profile

« Previous | Next » 

Revision 8287d2f2

Added by ngoto (Naohisa Goto) over 3 years ago

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.