summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-09-08 19:43:12 +0000
committerBruce Momjian <bruce@momjian.us>2004-09-08 19:43:12 +0000
commite97c817092fa49165b57021e4b6c0a5ad852e589 (patch)
tree1e9eb8f3559a31496d0efa33d6e907f5dc2bb2d8 /config
parentcef30c650beec45c022338f816d9c3ee2ce496e3 (diff)
downloadpostgresql-e97c817092fa49165b57021e4b6c0a5ad852e589.tar.gz
Use _timezone global on Cygwin instead of timezone.
Diffstat (limited to 'config')
-rw-r--r--config/c-library.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/config/c-library.m4 b/config/c-library.m4
index 6385ab36d4..96e7e18b15 100644
--- a/config/c-library.m4
+++ b/config/c-library.m4
@@ -1,5 +1,5 @@
# Macros that test various C library quirks
-# $PostgreSQL: pgsql/config/c-library.m4,v 1.26 2004/06/07 22:39:44 momjian Exp $
+# $PostgreSQL: pgsql/config/c-library.m4,v 1.27 2004/09/08 19:43:00 momjian Exp $
# PGAC_VAR_INT_TIMEZONE
@@ -10,7 +10,11 @@ AC_DEFUN([PGAC_VAR_INT_TIMEZONE],
[AC_CACHE_CHECK(for int timezone, pgac_cv_var_int_timezone,
[AC_TRY_LINK([#include <time.h>
int res;],
- [res = timezone / 60;],
+ [#ifndef __CYGWIN__
+res = timezone / 60;
+#else
+res = _timezone / 60;
+#endif],
[pgac_cv_var_int_timezone=yes],
[pgac_cv_var_int_timezone=no])])
if test x"$pgac_cv_var_int_timezone" = xyes ; then