aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-10-31 06:55:15 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-10-31 06:55:15 +0000
commit5cbff9a0201f1d7365397c9ecf21aaa99d438cfd (patch)
treed843b354533e48f236cf222a6aa7ee91c1ceb0c1
parentf5501d9c37b59227afd72f53dc28713599208339 (diff)
downloadpostgresql-5cbff9a0201f1d7365397c9ecf21aaa99d438cfd.tar.gz
postgresql-5cbff9a0201f1d7365397c9ecf21aaa99d438cfd.zip
USE of PORTNAME_* should be discouraged wherever possible. The code
*should* be intelligent enough that: #if defined(__FreeBSD__) works, where __FreeBSD__ is actually defined by the compiler itself. Makefile.global used to have -DPORTNAME_<port> -D<port> as part of the flags for gcc while all occurances of PORTNAME_<port> slowly get removed from the source tree...
-rw-r--r--src/include/config.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/include/config.h b/src/include/config.h
index 76eda5368b0..773e68a6084 100644
--- a/src/include/config.h
+++ b/src/include/config.h
@@ -15,11 +15,11 @@
#define HAVE_MEMMOVE
-#if defined(PORTNAME_sequent)
+#if defined(sequent)
# define NEED_UNION_SEMUN
#endif
-#if defined(PORTNAME_alpha)
+#if defined(alpha)
# define USE_POSIX_TIME
# define DISABLE_XOPEN_NLS
# define NEED_ISINF
@@ -27,25 +27,25 @@
# define NEED_UNION_SEMUN
#endif
-#if defined(PORTNAME_dgux)
+#if defined(dgux)
# define LINUX_ELF
# define NEED_UNION_SEMUN
#endif
-#if defined(PORTNAME_ultrix4)
+#if defined(ultrix4)
# define NEED_ISINF
# define USE_POSIX_TIME
# define NEED_UNION_SEMUN
#endif
-#if defined(PORTNAME_linux)
+#if defined(linux)
# ifndef __USE_POSIX
# define __USE_POSIX
# endif
# define NEED_CBRT
#endif
-#if defined(PORTNAME_hpux)
+#if defined(hpux)
# define USE_POSIX_TIME
# define HAVE_TZSET
# define NEED_CBRT
@@ -53,7 +53,7 @@
# define NEED_UNION_SEMUN
#endif
-#if defined(PORTNAME_i386_solaris)
+#if defined(i386_solaris)
# define USE_POSIX_TIME
# define NEED_ISINF
# define NEED_RUSAGE
@@ -62,12 +62,12 @@
# define NEED_UNION_SEMUN
#endif
-#if defined(PORTNAME_sparc)
+#if defined(sparc)
# define USE_POSIX_TIME
# undef HAVE_MEMMOVE
#endif
-#if defined(PORTNAME_sparc_solaris)
+#if defined(sparc_solaris)
# define USE_POSIX_TIME
# define NEED_ISINF
# define NEED_RUSAGE
@@ -77,7 +77,7 @@
# define NEED_UNION_SEMUN
#endif
-#if defined(PORTNAME_svr4)
+#if defined(svr4)
# define USE_POSIX_TIME
# define NEED_ISINF
# define NEED_RUSAGE
@@ -86,11 +86,11 @@
# define NEED_UNION_SEMUN
#endif
-#if defined(PORTNAME_next)
+#if defined(next)
# define NEED_SIG_JMP
#endif
-#if defined(PORTNAME_win32)
+#if defined(win32)
# define NEED_SIG_JMP
# define NO_UNISTD_H
# define USES_WINSOCK
@@ -101,21 +101,21 @@
# define NEED_ISINF
#endif /* WIN32 */
-#if defined(PORTNAME_BSD44_derived) || \
- defined(PORTNAME_bsdi_2_1)
+#if defined(BSD44_derived) || \
+ defined(bsdi_2_1)
# define USE_LIMITS_H
# define USE_POSIX_TIME
# define NEED_CBRT
#endif
-#if defined(PORTNAME_bsdi)
+#if defined(bsdi)
# define NEED_UNION_SEMUN
# define USE_LIMITS_H
# define USE_POSIX_TIME
# define NEED_CBRT
#endif
-#if defined(PORTNAME_aix)
+#if defined(aix)
# define CLASS_CONFLICT
# define DISABLE_XOPEN_NLS
# define NEED_ISINF
@@ -124,7 +124,7 @@
# define HAVE_TZSET
#endif
-#if defined(PORTNAME_irix5)
+#if defined(irix5)
# define USE_POSIX_TIME
# define NEED_ISINF
# define NO_EMPTY_STMTS