Skip to content
Snippets Groups Projects
Commit 0c82203c authored by Aurelien Jarno's avatar Aurelien Jarno Committed by Alexander Larsson
Browse files

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
parent 6f1ee5db
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ AC_CHECK_DECLS([ ...@@ -12,6 +12,7 @@ AC_CHECK_DECLS([
#include <sched.h> #include <sched.h>
#include <linux/loop.h> #include <linux/loop.h>
#include <linux/random.h> #include <linux/random.h>
#include <sys/mman.h>
]]) ]])
AC_ARG_ENABLE(otmpfile, AC_ARG_ENABLE(otmpfile,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment