Skip to content

Commit 6af5f91

Browse files
ports(mesa): define GNU_SOURCE to fix compilation
Signed-off-by: Anhad Singh <[email protected]>
1 parent c5339be commit 6af5f91

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

patches/mesa/jinx-working-patch.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ index 0254024..c2ffd35 100644
1111
#include <sys/types.h>
1212
typedef int8_t __s8;
1313
typedef uint8_t __u8;
14+
diff --git mesa-clean/meson.build mesa-workdir/meson.build
15+
index 2902c10..1da7605 100644
16+
--- mesa-clean/meson.build
17+
+++ mesa-workdir/meson.build
18+
@@ -959,7 +959,7 @@ if cc.has_function('fmemopen')
19+
endif
20+
21+
# TODO: this is very incomplete
22+
-if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd', 'haiku', 'android'].contains(host_machine.system())
23+
+if ['linux', 'cygwin', 'gnu', 'freebsd', 'gnu/kfreebsd', 'haiku', 'android', 'aero'].contains(host_machine.system())
24+
pre_args += '-D_GNU_SOURCE'
25+
elif host_machine.system() == 'sunos'
26+
pre_args += '-D__EXTENSIONS__'
1427
diff --git mesa-clean/src/compiler/spirv/spirv_to_nir.c mesa-workdir/src/compiler/spirv/spirv_to_nir.c
1528
index 5f36118..a501802 100644
1629
--- mesa-clean/src/compiler/spirv/spirv_to_nir.c

0 commit comments

Comments
 (0)