summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0001-meson-update-header-file-to-detect-memfd_create.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0001-meson-update-header-file-to-detect-memfd_create.patch')
-rw-r--r--meta/recipes-core/systemd/systemd/0001-meson-update-header-file-to-detect-memfd_create.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0001-meson-update-header-file-to-detect-memfd_create.patch b/meta/recipes-core/systemd/systemd/0001-meson-update-header-file-to-detect-memfd_create.patch
new file mode 100644
index 0000000000..c6431209d0
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/0001-meson-update-header-file-to-detect-memfd_create.patch
@@ -0,0 +1,28 @@
1From 2207e1ffe4f7e2dcc5e745dadb48738aa1048d63 Mon Sep 17 00:00:00 2001
2From: Yu Watanabe <watanabe.yu+github@gmail.com>
3Date: Sun, 26 Nov 2017 02:17:06 +0900
4Subject: [PATCH 1/3] meson: update header file to detect memfd_create()
5
6---
7Upstream-Status: Backport
8
9 meson.build | 3 ++-
10 1 file changed, 2 insertions(+), 1 deletion(-)
11
12diff --git a/meson.build b/meson.build
13index 20b27c860..550dd4ad8 100644
14--- a/meson.build
15+++ b/meson.build
16@@ -414,7 +414,8 @@ foreach ident : ['secure_getenv', '__secure_getenv']
17 endforeach
18
19 foreach ident : [
20- ['memfd_create', '''#include <sys/memfd.h>'''],
21+ ['memfd_create', '''#define _GNU_SOURCE
22+ #include <sys/mman.h>'''],
23 ['gettid', '''#include <sys/types.h>'''],
24 ['pivot_root', '''#include <stdlib.h>'''], # no known header declares pivot_root
25 ['name_to_handle_at', '''#define _GNU_SOURCE
26--
272.16.1
28