[PATCH i-g-t v2 1/7] Define _LARGEFILE64_SOURCE for musl libc

Reagan Bohan reagan at ourmail.work
Sat Apr 27 11:18:39 UTC 2024


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 at ourmail.work>
---
 meson.build | 2 ++
 1 file changed, 2 insertions(+)

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
-- 
2.43.2



More information about the igt-dev mailing list