New test.
[mono.git] / libgc / solaris_threads.c
index 5c49c1206b8176d85a09aa1fa7f33ca2ebf1e56a..e6e0ea259c17cdb842657cb8c0927ae8adc4a078 100644 (file)
 # include "private/gc_priv.h"
 
 # if defined(GC_SOLARIS_THREADS) || 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 "private/solaris_threads.h"
 # include <thread.h>
 # include <synch.h>