opnsense-ports/graphics/mesa-dri/files/patch-src_util_build__id.c
Franco Fichtner fa1747ca59 */*: sync with upstream
Taken from: HardenedBSD
2017-12-26 10:34:14 +01:00

17 lines
377 B
C

# Elf_ doesn't exist, use Elf32_ or Elf64_
#
--- src/util/build_id.c.orig 2017-12-21 17:31:22 UTC
+++ src/util/build_id.c
@@ -34,7 +34,11 @@
#endif
#ifndef ElfW
-#define ElfW(type) Elf_##type
+#ifdef __LP64__
+#define ElfW(type) Elf64_##type
+#else
+#define ElfW(type) Elf32_##type
+#endif
#endif
#define ALIGN(val, align) (((val) + (align) - 1) & ~((align) - 1))