diff options
author | Reagan Bohan <reagan@ourmail.work> | 2024-04-27 11:18:39 +0000 |
---|---|---|
committer | Kamil Konieczny <kamil.konieczny@linux.intel.com> | 2024-05-07 09:56:44 +0200 |
commit | 8957935a098628b65b53878c5829b08da6eb1f5a (patch) | |
tree | d73b8d836c2145ad02aa3df95bfe03d468b1c099 | |
parent | 4b767566bbc6c3ac342b54620aec0fabc8cdd4bf (diff) | |
download | igt-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.build | 2 |
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 |