From 5bd8646633b9ab6de3da2e2c6198ae15f59c6d6f Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 25 Nov 2017 21:15:29 -0800 Subject: Add macros to build on OpenBSD From upstream Mesa commit a042465c218e ("util/build-id: define ElfW and NT_GNU_BUILD_ID if needed") --- build-id.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 { -- cgit v1.2.3