From 6b9a0b1b5eb37e7a38f2534d2435152cf39ba864 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Mon, 26 Jun 2006 18:51:20 +0000 Subject: [PATCH] 2006-06-26 Zoltan Varga * solaris_pthreads.c: Avoid another solaris/x86 #error. svn path=/trunk/mono/; revision=62063 --- ChangeLog | 4 ++++ solaris_pthreads.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 012a1a61..deca0cd9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-06-26 Zoltan Varga + + * solaris_pthreads.c: Avoid another solaris/x86 #error. + 2006-04-08 Zoltan Varga * dyn_load.c: Avoid #error "large files are not supported by libelf" errors on solaris/x86. diff --git a/solaris_pthreads.c b/solaris_pthreads.c index 08c45e7c..b1c70fee 100644 --- a/solaris_pthreads.c +++ b/solaris_pthreads.c @@ -19,6 +19,13 @@ # include "private/gc_priv.h" # if defined(GC_SOLARIS_PTHREADS) + +/* Avoid #error"Cannot use procfs in the large file compilation environment" */ +#if defined(_ILP32) && (_FILE_OFFSET_BITS != 32) +#undef _FILE_OFFSET_BITS +#define _FILE_OFFSET_BITS 32 +#endif + # include # include # include -- 2.40.0