summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0001-meson-update-header-file-to-detect-memfd_create.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-01-27 12:03:22 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-30 11:50:11 +0000
commit2c09f9722a6f44651534770117b91ad0d89c0a43 (patch)
tree9f974feb1c8f6a75808d340476bea10af7b482fa /meta/recipes-core/systemd/systemd/0001-meson-update-header-file-to-detect-memfd_create.patch
parentc58d9a98d40a7f3ed01ef4589f128917948e74d4 (diff)
downloadpoky-2c09f9722a6f44651534770117b91ad0d89c0a43.tar.gz
systemd: Fix build with glibc 2.27
(From OE-Core rev: cf4fc7804f093f5b570eaeaa39cb5dce5db1e379) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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