summaryrefslogtreecommitdiff
path: root/src/include/port
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-10-29 13:17:34 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-10-29 13:17:34 +0000
commit525e1c4436651c39f713416348bd35e3176b7797 (patch)
tree6f1f991d40bc259990be5f581f791882c4aae6af /src/include/port
parent8b0431129309e4a4ddbc91f5a3e58631a07ac13c (diff)
downloadpostgresql-525e1c4436651c39f713416348bd35e3176b7797.tar.gz
USE_POSIX_TIME replaced by HAVE_TM_ZONE || HAVE_INT_TIMEZONE, which are
equivalent. In linux.h there were some #undef HAVE_INT_TIMEZONE, which are useless because HAVE_TM_ZONE overrides it anyway, and messing with configure results isn't cool.
Diffstat (limited to 'src/include/port')
-rw-r--r--src/include/port/aix.h1
-rw-r--r--src/include/port/beos.h1
-rw-r--r--src/include/port/bsdi.h1
-rw-r--r--src/include/port/dgux.h2
-rw-r--r--src/include/port/freebsd.h2
-rw-r--r--src/include/port/hpux.h1
-rw-r--r--src/include/port/irix5.h1
-rw-r--r--src/include/port/linux.h18
-rw-r--r--src/include/port/netbsd.h2
-rw-r--r--src/include/port/openbsd.h2
-rw-r--r--src/include/port/osf.h1
-rw-r--r--src/include/port/qnx4.h1
-rw-r--r--src/include/port/sco.h2
-rw-r--r--src/include/port/solaris.h3
-rw-r--r--src/include/port/sunos4.h1
-rw-r--r--src/include/port/svr4.h2
-rw-r--r--src/include/port/ultrix4.h1
-rw-r--r--src/include/port/univel.h2
-rw-r--r--src/include/port/unixware.h2
-rw-r--r--src/include/port/win.h1
20 files changed, 1 insertions, 46 deletions
diff --git a/src/include/port/aix.h b/src/include/port/aix.h
index 39c9a79a9c..782d84bb91 100644
--- a/src/include/port/aix.h
+++ b/src/include/port/aix.h
@@ -1,4 +1,3 @@
-#define USE_POSIX_TIME
#define CLASS_CONFLICT
#define DISABLE_XOPEN_NLS
#define HAS_TEST_AND_SET
diff --git a/src/include/port/beos.h b/src/include/port/beos.h
index b27015d46e..0618dc3ffd 100644
--- a/src/include/port/beos.h
+++ b/src/include/port/beos.h
@@ -1,7 +1,6 @@
#include <kernel/OS.h>
#include "kernel/image.h"
-#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
diff --git a/src/include/port/bsdi.h b/src/include/port/bsdi.h
index bb6cbb801e..f486536113 100644
--- a/src/include/port/bsdi.h
+++ b/src/include/port/bsdi.h
@@ -5,7 +5,6 @@
#define NEED_SPARC_TAS_ASM
#endif
-#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
diff --git a/src/include/port/dgux.h b/src/include/port/dgux.h
index f08580cfaf..d8fd311e69 100644
--- a/src/include/port/dgux.h
+++ b/src/include/port/dgux.h
@@ -1,5 +1,3 @@
-#define USE_POSIX_TIME
-
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
diff --git a/src/include/port/freebsd.h b/src/include/port/freebsd.h
index 162ff5acfd..ec92644a15 100644
--- a/src/include/port/freebsd.h
+++ b/src/include/port/freebsd.h
@@ -1,5 +1,3 @@
-#define USE_POSIX_TIME
-
#if defined(__i386__)
#define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET
diff --git a/src/include/port/hpux.h b/src/include/port/hpux.h
index b265d4173f..870b12f263 100644
--- a/src/include/port/hpux.h
+++ b/src/include/port/hpux.h
@@ -1,4 +1,3 @@
-#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
typedef struct
{
diff --git a/src/include/port/irix5.h b/src/include/port/irix5.h
index 8451ee95d8..6687960049 100644
--- a/src/include/port/irix5.h
+++ b/src/include/port/irix5.h
@@ -1,3 +1,2 @@
-#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
typedef unsigned long slock_t;
diff --git a/src/include/port/linux.h b/src/include/port/linux.h
index 366932122c..b6eb10f3d6 100644
--- a/src/include/port/linux.h
+++ b/src/include/port/linux.h
@@ -1,11 +1,3 @@
-/* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either
- here or with -D compile options, but __ macros should be set and used by C
- library macros, not Postgres code. __USE_POSIX is set by features.h,
- __USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to
- be used.
-*/
-#define USE_POSIX_TIME
-
#if defined(__i386__)
typedef unsigned char slock_t;
@@ -42,13 +34,3 @@ typedef unsigned int slock_t;
#define HAS_TEST_AND_SET
#endif
-
-#if defined(__GLIBC__) && (__GLIBC__ >= 2)
-#ifdef HAVE_INT_TIMEZONE
-#undef HAVE_INT_TIMEZONE
-#endif
-#endif
-
-#if defined(__powerpc__)
-#undef HAVE_INT_TIMEZONE
-#endif
diff --git a/src/include/port/netbsd.h b/src/include/port/netbsd.h
index dc01930325..63e4236248 100644
--- a/src/include/port/netbsd.h
+++ b/src/include/port/netbsd.h
@@ -1,5 +1,3 @@
-#define USE_POSIX_TIME
-
#if defined(__i386__)
#define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET
diff --git a/src/include/port/openbsd.h b/src/include/port/openbsd.h
index dc01930325..63e4236248 100644
--- a/src/include/port/openbsd.h
+++ b/src/include/port/openbsd.h
@@ -1,5 +1,3 @@
-#define USE_POSIX_TIME
-
#if defined(__i386__)
#define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET
diff --git a/src/include/port/osf.h b/src/include/port/osf.h
index 6c0d7b2afd..c43671811d 100644
--- a/src/include/port/osf.h
+++ b/src/include/port/osf.h
@@ -1,5 +1,4 @@
#define NOFIXADE
-#define USE_POSIX_TIME
#define DISABLE_XOPEN_NLS
#define HAS_TEST_AND_SET
/*#include <sys/mman.h>*/ /* for msemaphore */
diff --git a/src/include/port/qnx4.h b/src/include/port/qnx4.h
index d60555f104..54cbbb6fb3 100644
--- a/src/include/port/qnx4.h
+++ b/src/include/port/qnx4.h
@@ -9,7 +9,6 @@
#include <semaphore.h> /* for sem_t */
#endif
-#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
#define HAVE_STRING_H
diff --git a/src/include/port/sco.h b/src/include/port/sco.h
index 2b1187e7ea..04d3a506d6 100644
--- a/src/include/port/sco.h
+++ b/src/include/port/sco.h
@@ -4,8 +4,6 @@
#define DISABLE_COMPLEX_MACRO
-#define USE_POSIX_TIME
-
#define HAS_TEST_AND_SET
#define NEED_I386_TAS_ASM
diff --git a/src/include/port/solaris.h b/src/include/port/solaris.h
index 388e9f8b41..6851b6ce04 100644
--- a/src/include/port/solaris.h
+++ b/src/include/port/solaris.h
@@ -1,6 +1,5 @@
-/* $Header: /cvsroot/pgsql/src/include/port/solaris.h,v 1.2 2000/10/28 22:53:17 petere Exp $ */
+/* $Header: /cvsroot/pgsql/src/include/port/solaris.h,v 1.3 2000/10/29 13:17:34 petere Exp $ */
-#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
diff --git a/src/include/port/sunos4.h b/src/include/port/sunos4.h
index e9c0ec29d4..06c5ba99e3 100644
--- a/src/include/port/sunos4.h
+++ b/src/include/port/sunos4.h
@@ -1,4 +1,3 @@
-#define USE_POSIX_TIME
#define HAS_TEST_AND_SET
typedef unsigned char slock_t;
diff --git a/src/include/port/svr4.h b/src/include/port/svr4.h
index b6ca301e99..2c6e2b4e71 100644
--- a/src/include/port/svr4.h
+++ b/src/include/port/svr4.h
@@ -1,5 +1,3 @@
-#define USE_POSIX_TIME
-
#ifndef BYTE_ORDER
#ifdef MIPSEB
#define BYTE_ORDER BIG_ENDIAN
diff --git a/src/include/port/ultrix4.h b/src/include/port/ultrix4.h
index b88b701503..2dbbe6ceec 100644
--- a/src/include/port/ultrix4.h
+++ b/src/include/port/ultrix4.h
@@ -1,5 +1,4 @@
#define NOFIXADE
-#define USE_POSIX_TIME
#define NEED_STRDUP
#ifndef BIG_ENDIAN
diff --git a/src/include/port/univel.h b/src/include/port/univel.h
index 4f9853d52b..f51729448d 100644
--- a/src/include/port/univel.h
+++ b/src/include/port/univel.h
@@ -1,5 +1,3 @@
-#define USE_POSIX_TIME
-
#define HAS_TEST_AND_SET
#define NEED_I386_TAS_ASM
diff --git a/src/include/port/unixware.h b/src/include/port/unixware.h
index 00fe4501c2..380a19078f 100644
--- a/src/include/port/unixware.h
+++ b/src/include/port/unixware.h
@@ -1,5 +1,3 @@
-#define USE_POSIX_TIME
-
#define HAS_TEST_AND_SET
#define NEED_I386_TAS_ASM
diff --git a/src/include/port/win.h b/src/include/port/win.h
index f30979fd22..bae6de53f6 100644
--- a/src/include/port/win.h
+++ b/src/include/port/win.h
@@ -6,7 +6,6 @@ typedef unsigned char slock_t;
#endif
#define tzname _tzname /* should be in time.h? */
-#define USE_POSIX_TIME
#define HAVE_INT_TIMEZONE /* has int _timezone */
#include <cygwin/version.h>