memfd-wrappers: only define memfd_create() if not already defined
authorTanu Kaskinen <tanuk@iki.fi>
Wed, 24 Jan 2018 01:51:49 +0000 (03:51 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 31 Jan 2018 06:21:32 +0000 (08:21 +0200)
commitdfb0460fb4743aec047cdf755a660a9ac2d0f3fb
tree590e5273ed117b18ceb8ad89334f0ec110db9568
parent6d7e057b3739c365964892296a9cf4fc075bc844
memfd-wrappers: only define memfd_create() if not already defined

glibc 2.27 is to be released soon, and it will provide memfd_create().
If glibc provides the function, we must not define it ourselves,
otherwise building fails due to conflict between the two implementations
of the same function.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=104733
configure.ac
src/pulsecore/memfd-wrappers.h