From 466d3fe8e5e653e6d09e0c5e1026a582ed6b2132 Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Mon, 19 Jun 2006 22:38:20 +0200 Subject: [PATCH] dbghelp: Fix a Solaris compilation error. --- dlls/dbghelp/elf_module.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c index 85561ae29e..cb56e231a7 100644 --- a/dlls/dbghelp/elf_module.c +++ b/dlls/dbghelp/elf_module.c @@ -22,6 +22,13 @@ #include "config.h" #include "wine/port.h" +#if defined(__svr4__) || defined(__sun) +#define __ELF__ +/* large files are not supported by libelf */ +#undef _FILE_OFFSET_BITS +#define _FILE_OFFSET_BITS 32 +#endif + #include #include #include @@ -41,10 +48,6 @@ #include "dbghelp_private.h" -#if defined(__svr4__) || defined(__sun) -#define __ELF__ -#endif - #ifdef HAVE_ELF_H # include #endif