p4raw-id: //depot/win32/perl@1024
# 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")
};
# 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";