summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2017-11-25 21:15:29 -0800
committerMatt Turner <mattst88@gmail.com>2017-11-25 21:16:00 -0800
commit5bd8646633b9ab6de3da2e2c6198ae15f59c6d6f (patch)
tree3d8202acf96dea7a41e48d2c8c9c146ea505bcb6
parentca636ca673e3b7ad5132ab1659598f6dffbcd8f7 (diff)
Add macros to build on OpenBSD
From upstream Mesa commit a042465c218e ("util/build-id: define ElfW and NT_GNU_BUILD_ID if needed")
-rw-r--r--build-id.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/build-id.c b/build-id.c
index bd6faae..e686335 100644
--- a/build-id.c
+++ b/build-id.c
@@ -30,6 +30,14 @@
#include "build-id.h"
+#ifndef NT_GNU_BUILD_ID
+#define NT_GNU_BUILD_ID 3
+#endif
+
+#ifndef ElfW
+#define ElfW(type) Elf_##type
+#endif
+
#define ALIGN(val, align) (((val) + (align) - 1) & ~((align) - 1))
struct build_id_note {