Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1b6322a

Browse files
committed
Moved more -D's out of the port specific Makefiles straight into the
config.h file
1 parent d16bc9c commit 1b6322a

File tree

1 file changed

+57
-13
lines changed

1 file changed

+57
-13
lines changed

src/include/config.h

Lines changed: 57 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,27 @@
88

99
#define BLCKSZ 8192
1010

11-
#if defined(sequent) || \
12-
defined(PORTNAME_aix) || \
13-
defined(PORTNAME_alpha) || \
14-
defined(PORTNAME_bsdi) || \
15-
defined(PORTNAME_hpux) || \
16-
defined(PORTNAME_dgux) || \
17-
defined(PORTNAME_i386_solaris) || \
18-
defined(PORTNAME_sparc_solaris) || \
19-
defined(PORTNAME_ultrix4) || \
20-
defined(PORTNAME_svr4)
21-
#define NEED_UNION_SEMUN
11+
#if defined(sequent)
12+
# define NEED_UNION_SEMUN
13+
#endif
14+
15+
#if defined(alpha)
16+
# define USE_POSIX_TIME
17+
# define DISABLE_XOPEN_NLS
18+
# define NEED_ISINF
19+
# define HAS_LONG_LONG
20+
# define NEED_UNION_SEMUN
21+
#endif
22+
23+
#if defined(dgux)
24+
# define LINUX_ELF
25+
# define NEED_UNION_SEMUN
26+
#endif
27+
28+
#if defined(ultrix4)
29+
# define NEED_ISINF
30+
# define USE_POSIX_TIME
31+
# define NEED_UNION_SEMUN
2232
#endif
2333

2434
#if defined(linux)
@@ -30,18 +40,39 @@
3040
# define HAVE_TZSET
3141
# define NEED_CBRT
3242
# define NEED_RINT
43+
# define NEED_UNION_SEMUN
3344
#endif
3445

3546
#if defined(i386_solaris)
47+
# define USE_POSIX_TIME
48+
# define NEED_ISINF
49+
# define NEED_RUSAGE
50+
# define NO_EMPTY_STMTS
3651
# define HAVE_TZSET
52+
# define NEED_UNION_SEMUN
53+
#endif
54+
55+
#if defined(sparc)
56+
# define USE_POSIX_TIME
3757
#endif
3858

3959
#if defined(sparc_solaris)
60+
# define USE_POSIX_TIME
61+
# define NEED_ISINF
62+
# define NEED_RUSAGE
63+
# define NO_EMPTY_STMTS
64+
# define USE_POSIX_TIME
4065
# define HAVE_TZSET
66+
# define NEED_UNION_SEMUN
4167
#endif
4268

4369
#if defined(svr4)
70+
# define USE_POSIX_TIME
71+
# define NEED_ISINF
72+
# define NEED_RUSAGE
73+
# define NO_EMPTY_STMTS
4474
# define HAVE_TZSET
75+
# define NEED_UNION_SEMUN
4576
#endif
4677

4778
#if defined(win32)
@@ -56,19 +87,32 @@
5687
#endif /* WIN32 */
5788

5889
#if defined(BSD44_derived) || \
59-
defined(bsdi) || \
6090
defined(bsdi_2_1)
6191
# define USE_LIMITS_H
6292
# define USE_POSIX_TIME
6393
# define NEED_CBRT
6494
#endif
6595

96+
#if defined(bsdi)
97+
# define NEED_UNION_SEMUN
98+
# define USE_LIMITS_H
99+
# define USE_POSIX_TIME
100+
# define NEED_CBRT
101+
#endif
102+
66103
#if defined(aix)
104+
# define CLASS_CONFLICT
105+
# define DISABLE_XOPEN_NLS
106+
# define NEED_ISINF
107+
# define NEED_UNION_SEMUN
67108
# define NEED_SYS_SELECT_H
68109
# define HAVE_TZSET
69110
#endif
70111

71112
#if defined(irix5)
113+
# define USE_POSIX_TIME
114+
# define NEED_ISINF
115+
# define NO_EMPTY_STMTS
72116
# define NO_VFORK
73117
# define HAVE_TZSET
74118
#endif
@@ -83,7 +127,7 @@
83127
*/
84128

85129
#ifndef SIGNAL_ARGS
86-
#define SIGNAL_ARGS int postgres_signal_arg
130+
# define SIGNAL_ARGS int postgres_signal_arg
87131
#endif
88132

89133
/* NAMEDATALEN is the max length for system identifiers (e.g. table names,

0 commit comments

Comments
 (0)