From: Gurusamy Sarathy Date: Thu, 21 May 1998 21:11:12 +0000 (+0000) Subject: [win32] more mingw32 tweaks X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f6c6487a7fbe3f34af46c7923fc905a118aaf302;p=p5sagit%2Fp5-mst-13.2.git [win32] more mingw32 tweaks p4raw-id: //depot/win32/perl@1024 --- diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 97404b8..6b96111 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -110,7 +110,12 @@ # endif # ifdef __MINGW32__ # define mode_t short -# define tzset() not_here("tzset") +# ifndef tzset +# define tzset() not_here("tzset") +# endif +# ifndef _POSIX_OPEN_MAX +# define _POSIX_OPEN_MAX FOPEN_MAX /* XXX bogus ? */ +# endif # endif # define sigaction(a,b,c) not_here("sigaction") # define sigpending(a) not_here("sigpending") diff --git a/t/pragma/locale.t b/t/pragma/locale.t index bd5267d..00baa66 100755 --- a/t/pragma/locale.t +++ b/t/pragma/locale.t @@ -20,7 +20,8 @@ eval { }; # Visual C's CRT goes silly on strings of the form "en_US.ISO8859-1" -$have_setlocale = 0 if $^O eq 'MSWin32' && $Config{cc} =~ /^cl/i; +# and mingw32 uses said silly CRT +$have_setlocale = 0 if $^O eq 'MSWin32' && $Config{cc} =~ /^(cl|gcc)/i; print "1..", ($have_setlocale ? 102 : 98), "\n";