diff options
author | Matt Turner <mattst88@gmail.com> | 2017-11-25 21:15:29 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2017-11-25 21:16:00 -0800 |
commit | 5bd8646633b9ab6de3da2e2c6198ae15f59c6d6f (patch) | |
tree | 3d8202acf96dea7a41e48d2c8c9c146ea505bcb6 | |
parent | ca636ca673e3b7ad5132ab1659598f6dffbcd8f7 (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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 { |