Mac OS X patch for missing tzname definition from Paul Schinder.
Jarkko Hietaniemi [Tue, 24 Apr 2001 23:27:57 +0000 (23:27 +0000)]
p4raw-id: //depot/perl@9823

ext/POSIX/POSIX.xs

index 39d6f40..fe32529 100644 (file)
 #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];
+#endif
+
 #if defined(__VMS) && !defined(__POSIX_SOURCE)
 #  include <libdef.h>       /* LIB$_INVARG constant */
 #  include <lib$routines.h> /* prototype for lib$ediv() */