]> granicus.if.org Git - postgresql/commitdiff
Centralize more of the defines from backend/port under config.h
authorMarc G. Fournier <scrappy@hub.org>
Fri, 18 Oct 1996 00:33:41 +0000 (00:33 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Fri, 18 Oct 1996 00:33:41 +0000 (00:33 +0000)
Further ports should *really* avoid backend/port and make use of
config.h

src/backend/port/bsdi/Makefile.inc
src/backend/port/bsdi_2_1/Makefile.inc
src/backend/port/dgux/Makefile.inc
src/backend/port/hpux/Makefile.inc
src/backend/port/linux/Makefile.inc
src/backend/port/win32/nt.h
src/include/config.h

index 96eb2c5fc4377f4d3939519bdeda6814814b9a9a..347ded2c668582ba89522b1f3b695a26cfef43b1 100644 (file)
@@ -10,6 +10,5 @@
 #
 #-------------------------------------------------------------------------
 
-CFLAGS+=-DUSE_POSIX_TIME -DNEED_CBRT
 LDADD+= -ldld -lipc
 SUBSRCS= dynloader.c
index a5592e18d4dc8324ce0a24b537a0f158e482ae9d..cb9bd71e88a5d50ac4ff41c19237074822386b6c 100644 (file)
@@ -10,5 +10,4 @@
 #
 #-------------------------------------------------------------------------
 
-CFLAGS+=-DUSE_POSIX_TIME -DNEED_CBRT
 LDADD+= -ldl -lipc
index 407e440b3d27e217cfa6244600154f300d0087e1..b735b8a6301220c455073fc7d8c43e30cde2003b 100644 (file)
@@ -7,7 +7,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/port/dgux/Attic/Makefile.inc,v 1.1 1996/07/25 20:43:56 scrappy Exp $
+#    $Header: /cvsroot/pgsql/src/backend/port/dgux/Attic/Makefile.inc,v 1.2 1996/10/18 00:33:14 scrappy Exp $
 #
 # NOTES
 #    The Linux port is included here by courtesy of Kai Petzke.
@@ -21,5 +21,3 @@ BIGOBJS= false
 CFLAGS+= -DLINUX_ELF
 
 HEADERS+= machine.h port-protos.h
-CFLAGS+= #-DNEED_CBRT
-
index 4ff60d20195325289062c213e097a7ee0b39aed5..af338020112823c33a896d67f955b4a5a5a7f95f 100644 (file)
@@ -7,7 +7,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:43 scrappy Exp $
+#    $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/Makefile.inc,v 1.2 1996/10/18 00:33:22 scrappy Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -29,15 +29,6 @@ LDADD+= -ll /usr/lib/libdld.sl
 endif
 endif
 
-CFLAGS+= -DUSE_POSIX_TIME
-
-#
-# cbrt(3m) and rint(3m) are missing from 8.07.
-# cbrt(3m) and rint(3m) are broken in 9.01.
-# cbrt(3m) seems to be missing on 9.00 even though it is documented.
-#
-CFLAGS+= -DNEED_RINT -DNEED_CBRT
-
 #
 # The #pragma trick required on 8.07 no longer works -- the #pragma
 # is thoroughly broken.  However, the +u flag has been extended to
index cc35929a2608b6df4b9b6676668c7db445788421..00ed140f3b78ee671cbc34d760979ec22bdff99b 100644 (file)
@@ -7,7 +7,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/backend/port/linux/Attic/Makefile.inc,v 1.1.1.1 1996/07/09 06:21:44 scrappy Exp $
+#    $Header: /cvsroot/pgsql/src/backend/port/linux/Attic/Makefile.inc,v 1.2 1996/10/18 00:33:32 scrappy Exp $
 #
 # NOTES
 #    The Linux port is included here by courtesy of Kai Petzke.
@@ -32,5 +32,3 @@ SUBSRCS+= dynloader.c
 endif
 
 HEADERS+= machine.h port-protos.h
-CFLAGS+= -DNEED_CBRT
-
index abe3519ab5c4636465b03bc7b9ef5ba8567c677e..a879e37f1660113ff4793f290ac1ddcc98189d68 100644 (file)
@@ -46,9 +46,5 @@ struct sembuf
 #define GETNCNT 5
 #define GETVAL 6
 
-/* for float.c */
-#define NEED_CBRT
-#define NEED_ISINF
-
 #define POSTGRESDIR "d:\\pglite"
 #define PGDATADIR "d:\\pglite\\data"
index 0ddfe7feab3da216f4db2bee7bcaf2bc95755273..9a849ff6e06b2823f451490ad01ad64f636f0996 100644 (file)
@@ -8,8 +8,28 @@
 
 #define BLCKSZ 8192
 
+#if defined(sequent) || \
+    defined(PORTNAME_aix) || \
+    defined(PORTNAME_alpha) || \
+    defined(PORTNAME_bsdi) || \
+    defined(PORTNAME_hpux) || \
+    defined(PORTNAME_dgux) || \
+    defined(PORTNAME_i386_solaris) || \
+    defined(PORTNAME_sparc_solaris) || \
+    defined(PORTNAME_ultrix4) || \
+    defined(PORTNAME_svr4)
+#define NEED_UNION_SEMUN 
+#endif
+
+#if defined(linux)
+#  define NEED_CBRT
+#endif
+
 #if defined(hpux)
+#  define USE_POSIX_TIME
 #  define HAVE_TZSET
+#  define NEED_CBRT
+#  define NEED_RINT
 #endif
 
 #if defined(i386_solaris) 
 #  define NOFILE       100
 #  define NEED_UNION_SEMUN
 #  define HAVE_TZSET
+#  define NEED_CBRT
+#  define NEED_ISINF
 #endif /* WIN32 */
 
-#if defined(__FreeBSD__) || \
-    defined(__NetBSD__) || \
-    defined(bsdi)
+#if defined(BSD44_derived) || \
+    defined(bsdi) || \
+    defined(bsdi_2_1)
 #  define USE_LIMITS_H
 #  define USE_POSIX_TIME
+#  define NEED_CBRT
 #endif
 
 #if defined(aix)
  * long locks.  For some reason union semun is never defined in the
  * System V header files so we must do it ourselves.
  */
-#if defined(sequent) || \
-    defined(PORTNAME_aix) || \
-    defined(PORTNAME_alpha) || \
-    defined(PORTNAME_bsdi) || \
-    defined(PORTNAME_hpux) || \
-    defined(PORTNAME_dgux) || \
-    defined(PORTNAME_i386_solaris) || \
-    defined(PORTNAME_sparc_solaris) || \
-    defined(PORTNAME_ultrix4) || \
-    defined(PORTNAME_svr4)
-#define NEED_UNION_SEMUN 
-#endif
 
 /*  Debug and various "defines" that should be documented */