aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-25 12:35:43 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-11 10:16:57 +0100
commitef59288af2abcfbf0f2a776c1d99607721d09a73 (patch)
treeae1d5c77a66ff173256bb6a40dd6cf90c24ed2e2
parentmeson: look for gettid() definition where getpid() is defined (diff)
downloadsystemd-ef59288af2abcfbf0f2a776c1d99607721d09a73.tar.gz
systemd-ef59288af2abcfbf0f2a776c1d99607721d09a73.tar.bz2
systemd-ef59288af2abcfbf0f2a776c1d99607721d09a73.zip
meson: hopefully renameat2() will show up where renameat() is defined
Should glibc add this eventually, let's try to be smart where to look for it. (cherry picked from commit 2acfd0ff439b6317f91c32f6dbb42e9ce06b8943)
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index dcc4f1ef0..7d2856baf 100644
--- a/meson.build
+++ b/meson.build
@@ -462,7 +462,8 @@ foreach ident : [
#include <sys/stat.h>
#include <fcntl.h>'''],
['setns', '''#include <sched.h>'''],
- ['renameat2', '''#include <stdio.h>'''],
+ ['renameat2', '''#include <stdio.h>
+ #include <fcntl.h>'''],
['kcmp', '''#include <linux/kcmp.h>'''],
['keyctl', '''#include <sys/types.h>
#include <keyutils.h>'''],