From: Yu Watanabe Date: Mon, 25 Dec 2017 10:42:42 +0000 (+0900) Subject: meson: define _GNU_SOURCE to detect copy_file_range() (#7734) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2c6a42ac57f8096e29e4d71cb758f04a71ebba77;p=elogind.git meson: define _GNU_SOURCE to detect copy_file_range() (#7734) Follow-up for bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f of git repository for glibc. Recently glibc added `copy_file_range()`, but to use it, `_GNU_SOURCE` needs to be defined. This adds the flag in meson.build to detect the function by meson correctly. --- diff --git a/meson.build b/meson.build index 2501fe5cc..c9ce60a97 100644 --- a/meson.build +++ b/meson.build @@ -532,7 +532,8 @@ foreach ident : [ ['kcmp', '''#include '''], ['keyctl', '''#include #include '''], - ['copy_file_range', '''#include + ['copy_file_range', '''#define _GNU_SOURCE +// #include #include '''], ['bpf', '''#include #include '''],