Jeremy White : dbghelp: Fix a Solaris compilation error.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 19 16:18:10 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 466d3fe8e5e653e6d09e0c5e1026a582ed6b2132
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=466d3fe8e5e653e6d09e0c5e1026a582ed6b2132
Author: Jeremy White <jwhite at codeweavers.com>
Date: Mon Jun 19 22:38:20 2006 +0200
dbghelp: Fix a Solaris compilation error.
---
dlls/dbghelp/elf_module.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/dlls/dbghelp/elf_module.c b/dlls/dbghelp/elf_module.c
index 85561ae..cb56e23 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 <assert.h>
#include <stdio.h>
#include <stdlib.h>
@@ -41,10 +48,6 @@ #endif
#include "dbghelp_private.h"
-#if defined(__svr4__) || defined(__sun)
-#define __ELF__
-#endif
-
#ifdef HAVE_ELF_H
# include <elf.h>
#endif
More information about the wine-cvs
mailing list