From: Zoltan Varga Date: Sat, 24 Jun 2006 13:33:46 +0000 (+0000) Subject: 2006-04-08 Zoltan Varga X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0046dfdc5723a8330d7cfb7529d5337cf44753ee;p=gc 2006-04-08 Zoltan Varga * dyn_load.c: Avoid #error "large files are not supported by libelf" errors on solaris/x86. svn path=/trunk/mono/; revision=62007 --- diff --git a/ChangeLog b/ChangeLog index 7c68d663..012a1a61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-04-08 Zoltan Varga + + * dyn_load.c: Avoid #error "large files are not supported by libelf" errors on solaris/x86. + 2006-05-24 Martin Baulig * doc/debugger-support.txt: Removed; this issue turned out to be diff --git a/dyn_load.c b/dyn_load.c index 62d3815b..a6e33163 100644 --- a/dyn_load.c +++ b/dyn_load.c @@ -66,6 +66,11 @@ #include #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 # include # include