summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-08-25 23:15:04 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-08-25 23:15:04 -0700
commitb1c7429d1d36be399b65551e8be9f15e53917e90 (patch)
treea56d1c48666b45994e3550535b542532e1285423 /tests
parent8984d14da07ff8eb82bccd2b5cede969dcbd5f34 (diff)
downloadtxr-b1c7429d1d36be399b65551e8be9f15e53917e90.tar.gz
txr-b1c7429d1d36be399b65551e8be9f15e53917e90.tar.bz2
txr-b1c7429d1d36be399b65551e8be9f15e53917e90.zip
mmap: Solaris 10 build fix.
Solaris 10's <sys/mman.h> header doesn't declare madvise if _POSIX_C_SOURCE > 2 is defined or _XPTG4_2, even though __EXTENSIONS__ is defined. This is a bug in the header. * configure (solaris_target): New variable. We set this to y in several places where the script discovers that -D__EXTENSIONS__ is required to get something to work, which is a Solaris 10 telltale sign. Then just before the mmap test, if solaris_target is true, we deposit a blurb into config.h that declares madvise. This way, the ffi.c code, or any other committed C code doesn't have to carry any Solaris hack.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions