[win32] more mingw32 tweaks
authorGurusamy Sarathy <gsar@cpan.org>
Thu, 21 May 1998 21:11:12 +0000 (21:11 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Thu, 21 May 1998 21:11:12 +0000 (21:11 +0000)
p4raw-id: //depot/win32/perl@1024

ext/POSIX/POSIX.xs
t/pragma/locale.t

index 97404b8..6b96111 100644 (file)
 #  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")
index bd5267d..00baa66 100755 (executable)
@@ -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";