Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/mesa-dri/files/patch-src_util_build__id.c
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# Elf_ doesn't exist, use Elf32_ or Elf64_ | |||||
# | |||||
--- src/util/build_id.c.orig 2017-05-10 14:13:58 UTC | |||||
+++ src/util/build_id.c | |||||
@@ -33,7 +33,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)) |