summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jarno <aurel32@debian.org>2018-02-17 23:57:53 +0100
committerAlexander Larsson <alexl@redhat.com>2018-02-19 10:34:45 +0100
commit0c82203cd459a35cc3f471e3205355e9fb79160f (patch)
tree41bb014d7e1a8d5a0910edb79c7d62ca42d5417e
parent6f1ee5db1400b13a9a0fa0b2274ae34e8710c1aa (diff)
downloadlibglnx-0c82203cd459a35cc3f471e3205355e9fb79160f.tar.gz
Include sys/mman.h when checking for memfd_create
glibc 2.27 added support for memfd_create. Unfortunately flatpak-builder, or rather the included libglnx library, also has such a function to wrap the corresponding syscall. It correctly tries to detect it in the configure script to disabled the wrapper in case glibc provides it. However it doesn't work due to a missing include. Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890722
-rw-r--r--libglnx.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/libglnx.m4 b/libglnx.m4
index d5bcc2f..34caf20 100644
--- a/libglnx.m4
+++ b/libglnx.m4
@@ -12,6 +12,7 @@ AC_CHECK_DECLS([
#include <sched.h>
#include <linux/loop.h>
#include <linux/random.h>
+#include <sys/mman.h>
]])
AC_ARG_ENABLE(otmpfile,