1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

meson: update header file to detect memfd_create()

This commit is contained in:
Yu Watanabe 2017-11-26 02:17:06 +09:00
parent 07b3a02643
commit e481645174

View 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