chiark / gitweb /
configure.ac: memshr_create: Detect and use from <sys/mman.h>
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Oct 2018 21:43:34 +0000 (22:43 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Oct 2018 22:00:41 +0000 (23:00 +0100)
commitdc6031379ee6a09718b065387fbd3d6e5429a0d9
tree4e0e75f3af8835c2c104c1c63829242291bf01d1
parent400b2ca6635dcaea634468589fbd74775c22149b
configure.ac: memshr_create: Detect and use from <sys/mman.h>

Recent glibc versions do have a wrapper for this function.  It is available via
<sys/mman.h>.  So:
  * Add <sys/mman.h> to the list of header checks.
  * Add a conditional include of <sys/mman.h> to the configure test
    for memshr_create, so that it will pass if the function is there.
  * Add the same conditional include to missing.h, so that we
    get it declared when we build.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
configure.ac
src/basic/missing.h