From ed151c4502993881d423e303d5e64e81e4cec6dd Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 31 May 2020 09:23:52 +0000 Subject: graphics/mesa-devel: add new port Submitted by: Greg V (based on) Development branch of Mesa 3D graphics library. Only some drivers are enabled, so it can co-exist with the stable version. https://www.mesa3d.org/ --- graphics/mesa-devel/files/patch-freebsd11 | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 graphics/mesa-devel/files/patch-freebsd11 (limited to 'graphics/mesa-devel/files/patch-freebsd11') 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 + ^ +: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 + ^ +: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; + -- cgit v1.2.3