chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:42 +0000 (07:49 +0200)
Should glibc add this eventually, let's try to be smart where to look
for it.

meson.build

index 7871a1c8e8cc98cf0e1571714d8cf0fdeaed8f25..d4c90b803c3b925d392887edc14397d921dcbba3 100644 (file)
@@ -527,7 +527,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>'''],