summaryrefslogtreecommitdiff
path: root/test/test/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test/test/meson.build')
-rw-r--r--test/test/meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test/meson.build b/test/test/meson.build
index 92104cd..7c6e3b0 100644
--- a/test/test/meson.build
+++ b/test/test/meson.build
@@ -253,6 +253,9 @@ if cc.has_argument('-Wno-format-truncation')
cflags += '-Wno-format-truncation'
endif
+# specify -D_GNU_SOURCE unconditionally
+default_cflags += '-D_GNU_SOURCE'
+
test_dep_objs = []
compress_test_dep = dependency('zlib', required: false)
if compress_test_dep.found()