diff options
author | Zoltan Varga <vargaz@gmail.com> | 2006-06-24 17:33:46 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2006-06-24 17:33:46 +0400 |
commit | c04ae39f48b315fbbf586df8dffeec51aeb66021 (patch) | |
tree | 250dba1624c1b61b25d4a74862c55179be96c23b /libgc | |
parent | 6f6b4570568027e47454a51c0da9b18f87e97b00 (diff) |
2006-04-08 Zoltan Varga <vargaz@gmail.com>
* dyn_load.c: Avoid #error "large files are not supported by libelf" errors on solaris/x86.
svn path=/trunk/mono/; revision=62007
Diffstat (limited to 'libgc')
-rw-r--r-- | libgc/ChangeLog | 4 | ||||
-rw-r--r-- | libgc/dyn_load.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libgc/ChangeLog b/libgc/ChangeLog index 8c67ff5e0eb..b0527491709 100644 --- a/libgc/ChangeLog +++ b/libgc/ChangeLog @@ -1,3 +1,7 @@ +2006-04-08 Zoltan Varga <vargaz@gmail.com> + + * dyn_load.c: Avoid #error "large files are not supported by libelf" errors on solaris/x86. + 2006-05-24 Martin Baulig <martin@ximian.com> * doc/debugger-support.txt: Removed; this issue turned out to be diff --git a/libgc/dyn_load.c b/libgc/dyn_load.c index 62d3815b0e2..a6e33163dfd 100644 --- a/libgc/dyn_load.c +++ b/libgc/dyn_load.c @@ -66,6 +66,11 @@ #include <stdio.h> #ifdef SUNOS5DL +/* Avoid #error "large files are not supported by libelf" errors */ +#if defined(_ILP32) && (_FILE_OFFSET_BITS != 32) +#undef _FILE_OFFSET_BITS +#define _FILE_OFFSET_BITS 32 +#endif # include <sys/elf.h> # include <dlfcn.h> # include <link.h> |