summaryrefslogtreecommitdiff
path: root/extra/qemu/qemu-2.11.1-glibc-2.27-mman_create.patch
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-05-01 08:25:45 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-05-01 08:25:45 +0200
commit0f2c27a17d8a0e2ecb4e2eea609718ca14dc3869 (patch)
treecfa5c16ea77705d3dc0f1ed873ee3b71ce54f682 /extra/qemu/qemu-2.11.1-glibc-2.27-mman_create.patch
parente70c9e3654f3d6884f2c2cd0350422384c61656b (diff)
downloadpackages-0f2c27a17d8a0e2ecb4e2eea609718ca14dc3869.tar.xz
extra/qemu: patch for memfd_create redeclaration colliding with glibc 2.27
Diffstat (limited to 'extra/qemu/qemu-2.11.1-glibc-2.27-mman_create.patch')
-rw-r--r--extra/qemu/qemu-2.11.1-glibc-2.27-mman_create.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/extra/qemu/qemu-2.11.1-glibc-2.27-mman_create.patch b/extra/qemu/qemu-2.11.1-glibc-2.27-mman_create.patch
new file mode 100644
index 00000000..6b0f283d
--- /dev/null
+++ b/extra/qemu/qemu-2.11.1-glibc-2.27-mman_create.patch
@@ -0,0 +1,26 @@
+diff -rauN qemu-2.11.1/configure qemu-2.11.1-glibc-2.27-mman_create-patch/configure
+--- qemu-2.11.1/configure 2018-02-14 22:53:22.000000000 +0100
++++ qemu-2.11.1-glibc-2.27-mman_create-patch/configure 2018-05-01 08:12:01.052175589 +0200
+@@ -3920,7 +3920,7 @@
+ # check if memfd is supported
+ memfd=no
+ cat > $TMPC << EOF
+-#include <sys/memfd.h>
++#include <sys/mman.h>
+
+ int main(void)
+ {
+diff -rauN qemu-2.11.1/util/memfd.c qemu-2.11.1-glibc-2.27-mman_create-patch/util/memfd.c
+--- qemu-2.11.1/util/memfd.c 2018-02-14 22:53:23.000000000 +0100
++++ qemu-2.11.1-glibc-2.27-mman_create-patch/util/memfd.c 2018-05-01 08:13:37.393396612 +0200
+@@ -31,9 +31,7 @@
+
+ #include "qemu/memfd.h"
+
+-#ifdef CONFIG_MEMFD
+-#include <sys/memfd.h>
+-#elif defined CONFIG_LINUX
++#if defined CONFIG_LINUX && !defined CONFIG_MEMFD
+ #include <sys/syscall.h>
+ #include <asm/unistd.h>
+