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-Tag: v237~180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e50bfaefde2a01792f4e4bcad7e0d822c74835b;p=thirdparty%2Fsystemd.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 be8e610452c..f3a65b38932 100644 --- a/meson.build +++ b/meson.build @@ -468,7 +468,8 @@ foreach ident : [ ['kcmp', '''#include '''], ['keyctl', '''#include #include '''], - ['copy_file_range', '''#include + ['copy_file_range', '''#define _GNU_SOURCE + #include #include '''], ['bpf', '''#include #include '''],