Skip to content

Commit

Permalink
meson: define _GNU_SOURCE to detect copy_file_range()
Browse files Browse the repository at this point in the history
Follow-up for bad7a0c81f501fbbcc79af9eaa4b8254441c4a1f of git
repository for glibc.
  • Loading branch information
yuwata committed Dec 24, 2017
1 parent ebe6ff6 commit 5b653a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meson.build
Expand Up @@ -468,7 +468,8 @@ foreach ident : [
['kcmp', '''#include <linux/kcmp.h>'''],
['keyctl', '''#include <sys/types.h>
#include <keyutils.h>'''],
['copy_file_range', '''#include <sys/syscall.h>
['copy_file_range', '''#define _GNU_SOURCE
#include <sys/syscall.h>
#include <unistd.h>'''],
['bpf', '''#include <sys/syscall.h>
#include <unistd.h>'''],
Expand Down

0 comments on commit 5b653a7

Please sign in to comment.