From 0e50bfaefde2a01792f4e4bcad7e0d822c74835b Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 25 Dec 2017 19:42:42 +0900 Subject: [PATCH] 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. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index be8e610..f3a65b3 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 '''], -- 2.7.4