mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
Centralize more of the defines from backend/port under config.h
Further ports should *really* avoid backend/port and make use of config.h
This commit is contained in:
parent
a839456c41
commit
d16bc9ce37
@ -10,6 +10,5 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
CFLAGS+=-DUSE_POSIX_TIME -DNEED_CBRT
|
|
||||||
LDADD+= -ldld -lipc
|
LDADD+= -ldld -lipc
|
||||||
SUBSRCS= dynloader.c
|
SUBSRCS= dynloader.c
|
||||||
|
@ -10,5 +10,4 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
CFLAGS+=-DUSE_POSIX_TIME -DNEED_CBRT
|
|
||||||
LDADD+= -ldl -lipc
|
LDADD+= -ldl -lipc
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# 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
|
# NOTES
|
||||||
# The Linux port is included here by courtesy of Kai Petzke.
|
# The Linux port is included here by courtesy of Kai Petzke.
|
||||||
@ -21,5 +21,3 @@ BIGOBJS= false
|
|||||||
CFLAGS+= -DLINUX_ELF
|
CFLAGS+= -DLINUX_ELF
|
||||||
|
|
||||||
HEADERS+= machine.h port-protos.h
|
HEADERS+= machine.h port-protos.h
|
||||||
CFLAGS+= #-DNEED_CBRT
|
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# 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
|
||||||
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
|
# The #pragma trick required on 8.07 no longer works -- the #pragma
|
||||||
# is thoroughly broken. However, the +u flag has been extended to
|
# is thoroughly broken. However, the +u flag has been extended to
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
# IDENTIFICATION
|
# 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
|
# NOTES
|
||||||
# The Linux port is included here by courtesy of Kai Petzke.
|
# The Linux port is included here by courtesy of Kai Petzke.
|
||||||
@ -32,5 +32,3 @@ SUBSRCS+= dynloader.c
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
HEADERS+= machine.h port-protos.h
|
HEADERS+= machine.h port-protos.h
|
||||||
CFLAGS+= -DNEED_CBRT
|
|
||||||
|
|
||||||
|
@ -46,9 +46,5 @@ struct sembuf
|
|||||||
#define GETNCNT 5
|
#define GETNCNT 5
|
||||||
#define GETVAL 6
|
#define GETVAL 6
|
||||||
|
|
||||||
/* for float.c */
|
|
||||||
#define NEED_CBRT
|
|
||||||
#define NEED_ISINF
|
|
||||||
|
|
||||||
#define POSTGRESDIR "d:\\pglite"
|
#define POSTGRESDIR "d:\\pglite"
|
||||||
#define PGDATADIR "d:\\pglite\\data"
|
#define PGDATADIR "d:\\pglite\\data"
|
||||||
|
@ -8,8 +8,28 @@
|
|||||||
|
|
||||||
#define BLCKSZ 8192
|
#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)
|
#if defined(hpux)
|
||||||
|
# define USE_POSIX_TIME
|
||||||
# define HAVE_TZSET
|
# define HAVE_TZSET
|
||||||
|
# define NEED_CBRT
|
||||||
|
# define NEED_RINT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(i386_solaris)
|
#if defined(i386_solaris)
|
||||||
@ -31,13 +51,16 @@
|
|||||||
# define NOFILE 100
|
# define NOFILE 100
|
||||||
# define NEED_UNION_SEMUN
|
# define NEED_UNION_SEMUN
|
||||||
# define HAVE_TZSET
|
# define HAVE_TZSET
|
||||||
|
# define NEED_CBRT
|
||||||
|
# define NEED_ISINF
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || \
|
#if defined(BSD44_derived) || \
|
||||||
defined(__NetBSD__) || \
|
defined(bsdi) || \
|
||||||
defined(bsdi)
|
defined(bsdi_2_1)
|
||||||
# define USE_LIMITS_H
|
# define USE_LIMITS_H
|
||||||
# define USE_POSIX_TIME
|
# define USE_POSIX_TIME
|
||||||
|
# define NEED_CBRT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(aix)
|
#if defined(aix)
|
||||||
@ -94,18 +117,6 @@
|
|||||||
* long locks. For some reason union semun is never defined in the
|
* long locks. For some reason union semun is never defined in the
|
||||||
* System V header files so we must do it ourselves.
|
* 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 */
|
/* Debug and various "defines" that should be documented */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user