diff options
Diffstat (limited to 'recipes-devtools/qemu/qemu-qoriq/memfd.patch')
-rw-r--r-- | recipes-devtools/qemu/qemu-qoriq/memfd.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/recipes-devtools/qemu/qemu-qoriq/memfd.patch b/recipes-devtools/qemu/qemu-qoriq/memfd.patch new file mode 100644 index 00000000..d9e7a455 --- /dev/null +++ b/recipes-devtools/qemu/qemu-qoriq/memfd.patch @@ -0,0 +1,41 @@ +From d60ecdd94f4054aa0ec615824d5efdb4cebc7db9 Mon Sep 17 00:00:00 2001 +From: Ting Liu <ting.liu@nxp.com> +Date: Thu, 19 Apr 2018 11:47:16 +0800 +Subject: [PATCH] memfd + +--- + configure | 2 +- + util/memfd.c | 4 +--- + 2 files changed, 2 insertions(+), 4 deletions(-) + +diff --git a/configure b/configure +index be4d326..cb5197c 100755 +--- a/configure ++++ b/configure +@@ -3735,7 +3735,7 @@ fi + # check if memfd is supported + memfd=no + cat > $TMPC << EOF +-#include <sys/memfd.h> ++#include <sys/mman.h> + + int main(void) + { +diff --git a/util/memfd.c b/util/memfd.c +index 4571d1a..412e94a 100644 +--- a/util/memfd.c ++++ b/util/memfd.c +@@ -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> + +-- +2.7.4 + |