meson: hopefully renameat2() will show up where renameat() is defined
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Dec 2017 11:35:43 +0000 (12:35 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Dec 2017 11:35:43 +0000 (12:35 +0100)
Should glibc add this eventually, let's try to be smart where to look
for it.

meson.build

index 9fc45ab..c582c1b 100644 (file)
@@ -463,7 +463,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>'''],