From 2c6a42ac57f8096e29e4d71cb758f04a71ebba77 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 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 '''], -- 2.30.2