aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReagan Bohan <reagan@ourmail.work>2024-04-27 11:18:39 +0000
committerKamil Konieczny <kamil.konieczny@linux.intel.com>2024-05-07 09:56:44 +0200
commit8957935a098628b65b53878c5829b08da6eb1f5a (patch)
treed73b8d836c2145ad02aa3df95bfe03d468b1c099
parent4b767566bbc6c3ac342b54620aec0fabc8cdd4bf (diff)
downloadigt-gpu-tools-8957935a098628b65b53878c5829b08da6eb1f5a.tar.gz
meson: Define _LARGEFILE64_SOURCE for musl libc
musl libc expects this macro to be defined when using the types off64_t and ino64_t. This does not affect glibc. Signed-off-by: Reagan Bohan <reagan@ourmail.work> Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
-rw-r--r--meson.build2
1 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index cee8a7446..4a9c7d55e 100644
--- a/meson.build
+++ b/meson.build
@@ -74,6 +74,8 @@ cc_args = [
# well with longjmp which is heavily used by IGT framework.
'-fno-builtin-malloc',
'-fno-builtin-calloc',
+# Required to use off64_t and ino64_t on musl libc
+ '-D_LARGEFILE64_SOURCE=1',
]
foreach cc_arg : cc_args