[project @ 2002-07-04 12:57:39 by simonmar]
[haskell-directory.git] / include / HsBase.h
index f15fc83..1070aac 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: HsBase.h,v 1.7 2002/04/02 15:33:34 sof Exp $
+ * $Id: HsBase.h,v 1.8 2002/07/04 12:57:39 simonmar Exp $
  *
  * (c) The University of Glasgow 2001-2002
  *
 #include "config.h"
 #include "HsFFI.h"
 
+// The following is required on Solaris to force the POSIX versions of
+// the various _r functions instead of the Solaris versions.
+#ifdef solaris_TARGET_OS
+#define _POSIX_PTHREAD_SEMANTICS
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>