summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/qemu/qemu-qoriq/memfd.patch
diff options
context:
space:
mode:
authorTing Liu <ting.liu@nxp.com>2020-04-18 23:54:13 +0800
committerOtavio Salvador <otavio@ossystems.com.br>2020-04-20 16:17:28 -0300
commit8e115ab460032de8a3495588b642ca82892f93b1 (patch)
tree425267a6e5a2e00c77b1812866f2a53e4fbcb52f /recipes-devtools/qemu/qemu-qoriq/memfd.patch
parent9932e8145f250b3b1f86eb0c6af2cc48bf98ae45 (diff)
downloadmeta-freescale-8e115ab460032de8a3495588b642ca82892f93b1.tar.gz
qemu-qoriq: upgrade to 4.1
Signed-off-by: Ting Liu <ting.liu@nxp.com>
Diffstat (limited to 'recipes-devtools/qemu/qemu-qoriq/memfd.patch')
-rw-r--r--recipes-devtools/qemu/qemu-qoriq/memfd.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/recipes-devtools/qemu/qemu-qoriq/memfd.patch b/recipes-devtools/qemu/qemu-qoriq/memfd.patch
deleted file mode 100644
index d9e7a455d..000000000
--- a/recipes-devtools/qemu/qemu-qoriq/memfd.patch
+++ /dev/null
@@ -1,41 +0,0 @@
1From d60ecdd94f4054aa0ec615824d5efdb4cebc7db9 Mon Sep 17 00:00:00 2001
2From: Ting Liu <ting.liu@nxp.com>
3Date: Thu, 19 Apr 2018 11:47:16 +0800
4Subject: [PATCH] memfd
5
6---
7 configure | 2 +-
8 util/memfd.c | 4 +---
9 2 files changed, 2 insertions(+), 4 deletions(-)
10
11diff --git a/configure b/configure
12index be4d326..cb5197c 100755
13--- a/configure
14+++ b/configure
15@@ -3735,7 +3735,7 @@ fi
16 # check if memfd is supported
17 memfd=no
18 cat > $TMPC << EOF
19-#include <sys/memfd.h>
20+#include <sys/mman.h>
21
22 int main(void)
23 {
24diff --git a/util/memfd.c b/util/memfd.c
25index 4571d1a..412e94a 100644
26--- a/util/memfd.c
27+++ b/util/memfd.c
28@@ -31,9 +31,7 @@
29
30 #include "qemu/memfd.h"
31
32-#ifdef CONFIG_MEMFD
33-#include <sys/memfd.h>
34-#elif defined CONFIG_LINUX
35+#if defined CONFIG_LINUX && !defined CONFIG_MEMFD
36 #include <sys/syscall.h>
37 #include <asm/unistd.h>
38
39--
402.7.4
41