summaryrefslogtreecommitdiff
path: root/tests/use-as-subproject
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-04-21 19:56:41 +0100
committerSimon McVittie <smcv@collabora.com>2022-04-21 19:56:41 +0100
commit238f7bfc494e16a0864f88ae891da6e7b3d82e5b (patch)
treef0b85783954d4c3ff1c6ce2a319c1d09aa389914 /tests/use-as-subproject
parent4d5b1fcf0257f508f4b5e48b099f259b7bb9c908 (diff)
downloadlibglnx-238f7bfc494e16a0864f88ae891da6e7b3d82e5b.tar.gz
fdio: Skip glnx_try_fallocate() if _GNU_SOURCE is not defined
fallocate() is only visible in fcntl.h if _GNU_SOURCE is defined. Most users of libglnx will want to do that anyway, but it seems nicer to avoid "implicit declaration of function ‘fallocate’" warnings from simply including <libglnx.h> into naive code. Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'tests/use-as-subproject')
-rw-r--r--tests/use-as-subproject/meson.build1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/use-as-subproject/meson.build b/tests/use-as-subproject/meson.build
index 65ba37b..2d08160 100644
--- a/tests/use-as-subproject/meson.build
+++ b/tests/use-as-subproject/meson.build
@@ -7,7 +7,6 @@ project(
version : '0',
meson_version : '>=0.49.0',
)
-add_project_arguments('-D_GNU_SOURCE', language : 'c')
configure_file(
copy : true,