Thread View: gnu.utils.bug
1 messages
1 total messages
Started by mycroft
Thu, 27 Aug 1992 08:22
autoconf: Doesn't catch `tzname' on RS/6000.
Author: mycroft
Date: Thu, 27 Aug 1992 08:22
Date: Thu, 27 Aug 1992 08:22
26 lines
1111 bytes
1111 bytes
The test case `configure' tries to compile to check for `tzname' looks
like this:
#include <time.h>
#ifndef tzname /* For SGI. */
extern char **tzname;
#endif
main() { exit(0); } t() { atoi(*tzname); }
With some versions of the IBM C compiler, this generates an error:
"conftest.c", line 3.15: 1506-030 (S) Identifier tzname cannot be redeclared.
This is because previously, in <time.h>, `tzname' was defined as:
extern char *tzname[];
This generates a type mismatch. Defining the test case as:
#include <time.h>
#ifndef tzname /* For SGI. */
extern char *tzname[];
#endif
main() { exit(0); } t() { atoi(*tzname); }
solves the problem, on this machine.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads