From: Jarkko Hietaniemi Date: Tue, 24 Apr 2001 23:27:57 +0000 (+0000) Subject: Mac OS X patch for missing tzname definition from Paul Schinder. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cb2479a8766bd02245051d1faa20e82d3e2ca86a;p=p5sagit%2Fp5-mst-13.2.git Mac OS X patch for missing tzname definition from Paul Schinder. p4raw-id: //depot/perl@9823 --- diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 39d6f40..fe32529 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -64,6 +64,11 @@ #endif #include +/* 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 /* LIB$_INVARG constant */ # include /* prototype for lib$ediv() */