Message276098
After running ./configure on Linux or MacOS X, check the generated pyconfig.h header:
$ grep TZNAME pyconfig.h
/* #undef HAVE_DECL_TZNAME */
/* #undef HAVE_TZNAME */
However, tzname exists and is declared in time.h on Linux and MacOS X as can be seen by compiling and running the following simple program:
$ cat tzname.c
#include <time.h>
#include <stdio.h>
int main() {
tzset();
printf("%s/%s\n", tzname[0], tzname[1]);
}
$ clang tzname.c -o tzname
$ ./tzname
EST/EDT
Note that tzname is mandated by the recent editions of POSIX <http://pubs.opengroup.org/onlinepubs/009695399/functions/tzset.html>, so I am not sure whether we need to check for it in configure. |
|
Date |
User |
Action |
Args |
2016-09-12 19:33:55 | belopolsky | set | recipients:
+ belopolsky |
2016-09-12 19:33:55 | belopolsky | set | messageid: <1473708835.14.0.84620259167.issue28108@psf.upfronthosting.co.za> |
2016-09-12 19:33:55 | belopolsky | link | issue28108 messages |
2016-09-12 19:33:54 | belopolsky | create | |
|