summaryrefslogtreecommitdiff
path: root/config/c-library.m4
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-05-14 23:06:48 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-05-14 23:06:48 -0400
commitf667747b6d30c524c210501f5a2ca8e543a1bb67 (patch)
treee84944a7aaf99877a0d80c73b480563433651924 /config/c-library.m4
parente42a21b9e6c9b9e6346a34b62628d48ff2fc6ddf (diff)
downloadpostgresql-f667747b6d30c524c210501f5a2ca8e543a1bb67.tar.gz
Put back AC_REQUIRE([AC_STRUCT_TM]).
The BSD-ish members of the buildfarm all seem to think removing this was a bad idea. It looks to me like it resulted in omitting the system header inclusion necessary to detect the fields of struct tm correctly.
Diffstat (limited to 'config/c-library.m4')
-rw-r--r--config/c-library.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/config/c-library.m4 b/config/c-library.m4
index 0233144321..c39fc8d878 100644
--- a/config/c-library.m4
+++ b/config/c-library.m4
@@ -30,7 +30,8 @@ fi])# PGAC_VAR_INT_TIMEZONE
# This is the same as the standard macro AC_STRUCT_TIMEZONE, except that
# tzname[] is checked for regardless of whether we find tm_zone.
AC_DEFUN([PGAC_STRUCT_TIMEZONE],
-[AC_CHECK_MEMBERS([struct tm.tm_zone],,,[#include <sys/types.h>
+[AC_REQUIRE([AC_STRUCT_TM])dnl
+AC_CHECK_MEMBERS([struct tm.tm_zone],,,[#include <sys/types.h>
#include <$ac_cv_struct_tm>
])
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then