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

Commit 4a820de

Browse files
author
Bryan Henderson
committed
Include some macros that used to be -D options in Makefile.global.
1 parent e2a8163 commit 4a820de

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

src/include/config.h

+18-3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#if defined(alpha)
2525
# define USE_POSIX_TIME
26+
# define USE_POSIX_SIGNALS
2627
# define DISABLE_XOPEN_NLS
2728
# define NEED_ISINF
2829
# define HAS_LONG_LONG
@@ -32,6 +33,8 @@
3233
#if defined(dgux)
3334
# define LINUX_ELF
3435
# define NEED_UNION_SEMUN
36+
# define __USE_POSIX_SIGNALS
37+
# define -DUSE_POSIX_SIGNALS
3538
#endif
3639

3740
#if defined(ultrix4)
@@ -41,9 +44,12 @@
4144
#endif
4245

4346
#if defined(linux)
44-
# ifndef __USE_POSIX
45-
# define __USE_POSIX
46-
# endif
47+
/* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either
48+
here or with -D compile options, but __ macros should be set and used by C
49+
library macros, not Postgres code. __USE_POSIX is set by features.h,
50+
__USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to
51+
be used.
52+
*/
4753
# define USE_POSIX_TIME
4854
# define HAVE_TZSET
4955
# define NEED_CBRT
@@ -59,11 +65,13 @@
5965

6066
#if defined(i386_solaris)
6167
# define USE_POSIX_TIME
68+
# define USE_POSIX_SIGNALS
6269
# define NEED_ISINF
6370
# define NEED_RUSAGE
6471
# define NO_EMPTY_STMTS
6572
# define HAVE_TZSET
6673
# define NEED_UNION_SEMUN
74+
# define SYSV_DIRENT
6775
#endif
6876

6977
#if defined(sparc) && !defined(sparc_solaris)
@@ -73,21 +81,25 @@
7381

7482
#if defined(sparc_solaris)
7583
# define USE_POSIX_TIME
84+
# define USE_POSIX_SIGNALS
7685
# define NEED_ISINF
7786
# define NEED_RUSAGE
7887
# define NO_EMPTY_STMTS
7988
# define USE_POSIX_TIME
8089
# define HAVE_TZSET
8190
# define NEED_UNION_SEMUN
91+
# define SYSV_DIRENT
8292
#endif
8393

8494
#if defined(svr4)
8595
# define USE_POSIX_TIME
96+
# define USE_POSIX_SIGNALS
8697
# define NEED_ISINF
8798
# define NEED_RUSAGE
8899
# define NO_EMPTY_STMTS
89100
# define HAVE_TZSET
90101
# define NEED_UNION_SEMUN
102+
# define SYSV_DIRENT
91103
#endif
92104

93105
#if defined(next)
@@ -122,14 +134,17 @@
122134
# define NEED_UNION_SEMUN
123135
# define NEED_SYS_SELECT_H
124136
# define HAVE_TZSET
137+
# define HAVE_ANSI_CPP
125138
#endif
126139

127140
#if defined(irix5)
128141
# define USE_POSIX_TIME
142+
# define USE_POSIX_SIGNALS
129143
# define NEED_ISINF
130144
# define NO_EMPTY_STMTS
131145
# define NO_VFORK
132146
# define HAVE_TZSET
147+
# define SYSV_DIRENT
133148
#endif
134149

135150
/*

0 commit comments

Comments
 (0)