meson: define _FILE_OFFSET_BITS=64 for glibc

cute-signatures
Ariadne Conill 2021-12-27 13:48:22 -06:00 committed by Timo Teräs
parent f2a5959139
commit 336a133b76
1 changed files with 3 additions and 0 deletions

View File

@ -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()