From: simonmar Date: Thu, 4 Jul 2002 12:57:39 +0000 (+0000) Subject: [project @ 2002-07-04 12:57:39 by simonmar] X-Git-Tag: nhc98-1-18-release~951 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=d21286147cf436e3336aeb787c0e54ad0c16a84f;p=ghc-base.git [project @ 2002-07-04 12:57:39 by simonmar] We have to define _POSIX_PTHREAD_SEMANTICS on Solaris in order to get the right versions of the _r functions. Otherwise we get Solaris-specific versions of these, which puts a spanner in the works. Fixes problems with getDirectoryContents on Solaris in the HEAD. --- diff --git a/include/HsBase.h b/include/HsBase.h index f15fc83..1070aac 100644 --- a/include/HsBase.h +++ b/include/HsBase.h @@ -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 * @@ -13,6 +13,12 @@ #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 #include