]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - meson.build
test-hostname-util: add assert_se's to make coverity happy
[thirdparty/systemd.git] / meson.build
index 6926880b2964b5d5281f8a9ff86cdcd3e8e90baa..6ca506c41f0e1b30634fae06062c9e47d2441f62 100644 (file)
@@ -442,7 +442,8 @@ foreach ident : ['secure_getenv', '__secure_getenv']
 endforeach
 
 foreach ident : [
-        ['memfd_create',      '''#include <sys/memfd.h>'''],
+        ['memfd_create',      '''#define _GNU_SOURCE
+                                 #include <sys/mman.h>'''],
         ['gettid',            '''#include <sys/types.h>'''],
         ['pivot_root',        '''#include <stdlib.h>'''],     # no known header declares pivot_root
         ['name_to_handle_at', '''#define _GNU_SOURCE