[project @ 2003-04-11 11:43:09 by ross]
[ghc-base.git] / cbits / dirUtils.c
index bad1c0f..8d94a45 100644 (file)
@@ -3,7 +3,16 @@
  *
  * Directory Runtime Support
  */
-#include "HsCore.h"
+
+#include "config.h"
+
+// The following is required on Solaris to force the POSIX versions of
+// the various _r functions instead of the Solaris versions.
+#ifdef solaris2_TARGET_OS
+#define _POSIX_PTHREAD_SEMANTICS
+#endif
+
+#include "HsBase.h"
 
 #if defined(mingw32_TARGET_OS)
 #include <windows.h>