summaryrefslogtreecommitdiff
path: root/graphics/mesa-devel/files/patch-freebsd11
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/mesa-devel/files/patch-freebsd11')
-rw-r--r--graphics/mesa-devel/files/patch-freebsd1134
1 files changed, 34 insertions, 0 deletions
diff --git a/graphics/mesa-devel/files/patch-freebsd11 b/graphics/mesa-devel/files/patch-freebsd11
new file mode 100644
index 000000000000..f5f626705c2a
--- /dev/null
+++ b/graphics/mesa-devel/files/patch-freebsd11
@@ -0,0 +1,34 @@
+https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225302
+
+../src/util/build_id.c:42:4: error: unknown type name 'Elf_Nhdr'
+ ElfW(Nhdr) nhdr;
+ ^
+../src/util/build_id.c:38:20: note: expanded from macro 'ElfW'
+#define ElfW(type) Elf_##type
+ ^
+<scratch space>:101:1: note: expanded from here
+Elf_Nhdr
+^
+../src/util/build_id.c:91:33: error: use of undeclared identifier 'Elf_Nhdr'
+ size_t offset = sizeof(ElfW(Nhdr)) +
+ ^
+../src/util/build_id.c:38:20: note: expanded from macro 'ElfW'
+#define ElfW(type) Elf_##type
+ ^
+<scratch space>:102:1: note: expanded from here
+Elf_Nhdr
+^
+
+--- src/util/build_id.c.orig 2020-05-30 21:28:01 UTC
++++ src/util/build_id.c
+@@ -38,6 +38,10 @@
+ #define ElfW(type) Elf_##type
+ #endif
+
++#if defined(__FreeBSD__) && __FreeBSD__ < 12
++typedef Elf_Note Elf_Nhdr;
++#endif
++
+ struct build_id_note {
+ ElfW(Nhdr) nhdr;
+