diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c index 85561ae29e3..cb56e231a71 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