chiark / gitweb /
meson: look for gettid() definition where getpid() is defined
authorLennart Poettering <lennart@poettering.net>
Mon, 25 Dec 2017 11:35:28 +0000 (12:35 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:49:41 +0000 (07:49 +0200)
Hopefully, should gettid() show up one day in glibc it'll show up where
getpid() is defined too.

meson.build

index ac61dbc93b673207a9cc1a7fffcb7e99f99aad5a..7871a1c8e8cc98cf0e1571714d8cf0fdeaed8f25 100644 (file)
@@ -519,9 +519,10 @@ endforeach
 
 foreach ident : [
         ['memfd_create',      '''#include <sys/mman.h>'''],
-        ['gettid',            '''#include <sys/types.h>'''],
+        ['gettid',            '''#include <sys/types.h>
+//                                 #include <unistd.h>'''],
         ['pivot_root',        '''#include <stdlib.h>
-//                                 #include <unistd.h>'''],     # no known header declares pivot_root
+                                 #include <unistd.h>'''],     # no known header declares pivot_root
         ['name_to_handle_at', '''#include <sys/types.h>
                                  #include <sys/stat.h>
                                  #include <fcntl.h>'''],