diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-04-25 02:53:25 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-04-25 02:53:25 +0000 |
commit | e2465f50f6c5b07bc73c22766f9c58b92c0e8a1e (patch) | |
tree | 35df109fef38decc7c30622ad55f107fb92edd20 /ext/POSIX/POSIX.xs | |
parent | 58e775659dec144880f7212793771f18cf88682b (diff) | |
download | perl-e2465f50f6c5b07bc73c22766f9c58b92c0e8a1e.tar.gz |
The tzname[] bit is not needed by util.c -- and causes
heartburn in VMS (and it missing was probably the cause of
the Mac OS X trouble). Ouch.
p4raw-id: //depot/perl@9830
Diffstat (limited to 'ext/POSIX/POSIX.xs')
-rw-r--r-- | ext/POSIX/POSIX.xs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index fe32529437..69688359de 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -64,9 +64,14 @@ #endif #include <fcntl.h> -/* Mac OSX does not include a definition of tzname in a .h file */ -#if defined (HAS_TZNAME) && defined(__APPLE__) && defined(__MACH__) -extern char *tzname[2]; +#ifdef HAS_TZNAME +# if !defined(WIN32) && !defined(__CYGWIN__) +extern char *tzname[]; +# endif +#else +#if !defined(WIN32) || (defined(__MINGW32__) && !defined(tzname)) +char *tzname[] = { "" , "" }; +#endif #endif #if defined(__VMS) && !defined(__POSIX_SOURCE) |