X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=cbits%2FdirUtils.c;h=08ea54e550f3712c13fa3c1c6f3136d1aa153ff8;hb=60a7a748da3d168969ac8da224537dfdc4959ea4;hp=8c75f0c5c49ae39651e21afe2c3bbfacd99b5aba;hpb=7b379240e55ec4e19c3f64b112d696f78ac5f851;p=ghc-base.git diff --git a/cbits/dirUtils.c b/cbits/dirUtils.c index 8c75f0c..08ea54e 100644 --- a/cbits/dirUtils.c +++ b/cbits/dirUtils.c @@ -4,7 +4,7 @@ * Directory Runtime Support */ -#include "config.h" +#include "ghcconfig.h" // The following is required on Solaris to force the POSIX versions of // the various _r functions instead of the Solaris versions. @@ -63,7 +63,7 @@ __hscore_readdir( HsAddr dirPtr, HsAddr pDirEnt ) #if HAVE_READDIR_R struct dirent* p; int res; - static unsigned int nm_max = -1; + static unsigned int nm_max = (unsigned int)-1; if (pDirE == NULL) { return -1;