chiark / gitweb /
build-sys: use linux/memfd.h if available
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 5 Oct 2014 22:41:31 +0000 (18:41 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 5 Oct 2014 23:07:28 +0000 (19:07 -0400)
commit27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41
treec00b668d9d4672a04eb2a2634d4d439687dc0a91
parent0077776275cb753e478e0f92d4065dec5276c44a
build-sys: use linux/memfd.h if available

linux/memfd.h was added linux 3.17, so it might not be widely
available for a while.

Also, check if memfd_create is defined, for the HAVE_LINUX_MEMFD_H
check to have a chance of succeeding.

Also, collapse all ifdefs for memfd-related stuff, because they
were all added together so there's no need to check separately.
configure.ac
src/shared/memfd.c
src/shared/missing.h