summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2021-12-27 13:48:22 -0600
committerTimo Teräs <timo.teras@iki.fi>2021-12-29 07:52:48 +0000
commit336a133b7651ef58a9ac075b1a98ef536ea91d4f (patch)
treeb5dc631ebefbc005f28c409056364913dc7eeb71
parentf2a595913960a5a68806d4e32f1b849bfdce6933 (diff)
downloadapk-tools-336a133b7651ef58a9ac075b1a98ef536ea91d4f.tar.gz
apk-tools-336a133b7651ef58a9ac075b1a98ef536ea91d4f.tar.bz2
apk-tools-336a133b7651ef58a9ac075b1a98ef536ea91d4f.tar.xz
apk-tools-336a133b7651ef58a9ac075b1a98ef536ea91d4f.zip
meson: define _FILE_OFFSET_BITS=64 for glibc
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 902854e..8d32ad6 100644
--- a/meson.build
+++ b/meson.build
@@ -26,6 +26,9 @@ static_deps = [
add_project_arguments('-D_GNU_SOURCE', language: 'c')
+# Needed for 64-bit off_t and friends on glibc.
+add_project_arguments('-D_FILE_OFFSET_BITS=64', language: 'c')
+
# If we're a subproject we only want the static lib and not files
subproject = meson.is_subproject()