dbghelp: Avoid unconditional use of NT_GNU_BUILD_ID.

Gerald Pfeifer gerald at pfeifer.com
Sun Jun 3 06:27:52 CDT 2012


After commit d647bd108c5fa5350887b66353b8d2305f1d38b6

   dbghelp: Use build-id information to locate debug information (and 
   prefer it over .debug_link when both are present).

three days ago, dbghelp fails to build on FreeBSD (and probably other 
non-GNU platforms).

This is one way to work around that.

Gerald

---
 dlls/dbghelp/elf_module.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index 80352bc..52060e0 100644
--- a/dlls/dbghelp/elf_module.c
+++ b/dlls/dbghelp/elf_module.c
@@ -56,6 +56,10 @@
 #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);
 
 struct elf_info
-- 
1.7.7.3



More information about the wine-patches mailing list