dbghelp: Make sure NT_GNU_BUILD_ID is defined.
Francois Gouget
fgouget at free.fr
Sat Jun 2 03:30:29 CDT 2012
This fixes builds on Solaris 11 & 10, FreeBSD 8.1 & 7.x, Debian 4.0.
---
On Debian NT_GNU_BUILD_ID appeared in Debian 5.0 but apparently it's
still missing on other more recent Unix platforms.
It seemed to me that providing our own definition would be fine. But
maybe a better solution would be to make the relevant functions 'fail'
if it's missing.
dlls/dbghelp/elf_module.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index 80352bc..ea25b02 100644
--- a/dlls/dbghelp/elf_module.c
+++ b/dlls/dbghelp/elf_module.c
@@ -55,6 +55,9 @@
#define ELF_INFO_DEBUG_HEADER 0x0001
#define ELF_INFO_MODULE 0x0002
#define ELF_INFO_NAME 0x0004
+#ifndef NT_GNU_BUILD_ID
+# define NT_GNU_BUILD_ID 3
+#endif
WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
--
1.7.10
More information about the wine-patches
mailing list