2007-01-30 Zoltan Varga <vargaz@gmail.com>
[mono.git] / libgc / dyn_load.c
index 62d3815b0e2819975cb76e811cc1f754ca08007f..a6e33163dfdf2cb9bf09fcf1d7067d199949ba8b 100644 (file)
 
 #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>