* Patrick Scheibe <[EMAIL PROTECTED]> [2004-01-14 22:56 +0100]:
> ../../ghc/utils/hsc2hs/hsc2hs-inplace -Iinclude -I../../ghc/includes -I.    
> GHC/Unicode.hsc
> Unicode.hsc: In function `main':
> Unicode.hsc:126: `wint_t' undeclared (first use in this function)
> Unicode.hsc:126: (Each undeclared identifier is reported only once
> Unicode.hsc:126: for each function it appears in.)
> Unicode.hsc:126: parse error before "int"
> make[2]: *** [GHC/Unicode.hs] Error 1
> make[1]: *** [boot] Error 1
> make[1]: Leaving directory `/home/mai99dnn/tmp/ghc-6.2/libraries'
> make: *** [build] Error 1

Try the attached patch.

HTH,
     Olli
-- 
Oliver Braun -- obraun @ { unsane.org | FreeBSD.org | haskell.org }
--- libraries/base/GHC/Unicode.hsc.orig Mon Oct 20 12:12:20 2003
+++ libraries/base/GHC/Unicode.hsc      Mon Jan 12 23:32:22 2004
@@ -112,7 +112,7 @@
 -- -----------------------------------------------------------------------------
 -- Win32 implementation
 
-#if (defined(HAVE_WCTYPE_H) && HAVE_ISWSPACE) || mingw32_TARGET_OS
+#if (defined(HAVE_WCTYPE_H) && HAVE_ISWSPACE && defined(HTYPE_WINT_T)) || 
mingw32_TARGET_OS
 
 -- Use the wide-char classification functions if available.  Glibc
 -- seems to implement these properly, even for chars > 0xffff, as long

Attachment: pgp00000.pgp
Description: PGP signature

_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to