[Mesa-dev] [PATCH 01/14] util: fix ElfW macro
Greg V
greg at unrelenting.technology
Sun Dec 31 16:55:15 UTC 2017
Elf64_Nhdr exists, Elf_Nhdr does not.
Obtained from: FreeBSD ports
---
src/util/build_id.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/util/build_id.c b/src/util/build_id.c
index 536c74360e..cb35e90b09 100644
--- a/src/util/build_id.c
+++ b/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))
--
2.15.1
More information about the mesa-dev
mailing list