[runtime] Fix DISABLE_REFLECTION_EMIT build.
[mono.git] / libgc / solaris_pthreads.c
index 819454b439fc1016df0d3e835784fd9da08c53b6..b1c70feebc594fbec0cb979f52ccf402e4d9f64d 100644 (file)
  * Modified by Peter C. for Solaris Posix Threads.
  */
 
-# if defined(GC_SOLARIS_PTHREADS)
 # 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 <pthread.h>
 # include <thread.h>
 # include <signal.h>