Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4a820de

Browse files
author
Bryan Henderson
committed
Include some macros that used to be -D options in Makefile.global.
1 parente2a8163 commit4a820de

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

‎src/include/config.h

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#if defined(alpha)
2525
# defineUSE_POSIX_TIME
26+
# define USE_POSIX_SIGNALS
2627
# defineDISABLE_XOPEN_NLS
2728
# define NEED_ISINF
2829
# defineHAS_LONG_LONG
@@ -32,6 +33,8 @@
3233
#if defined(dgux)
3334
# defineLINUX_ELF
3435
# defineNEED_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
# defineUSE_POSIX_TIME
4854
# defineHAVE_TZSET
4955
# defineNEED_CBRT
@@ -59,11 +65,13 @@
5965

6066
#if defined(i386_solaris)
6167
# defineUSE_POSIX_TIME
68+
# define USE_POSIX_SIGNALS
6269
# defineNEED_ISINF
6370
# define NEED_RUSAGE
6471
# defineNO_EMPTY_STMTS
6572
# defineHAVE_TZSET
6673
# defineNEED_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
# defineUSE_POSIX_TIME
84+
# define USE_POSIX_SIGNALS
7685
# defineNEED_ISINF
7786
# define NEED_RUSAGE
7887
# defineNO_EMPTY_STMTS
7988
# defineUSE_POSIX_TIME
8089
# defineHAVE_TZSET
8190
# defineNEED_UNION_SEMUN
91+
# define SYSV_DIRENT
8292
#endif
8393

8494
#if defined(svr4)
8595
# defineUSE_POSIX_TIME
96+
# define USE_POSIX_SIGNALS
8697
# defineNEED_ISINF
8798
# define NEED_RUSAGE
8899
# defineNO_EMPTY_STMTS
89100
# defineHAVE_TZSET
90101
# defineNEED_UNION_SEMUN
102+
# define SYSV_DIRENT
91103
#endif
92104

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

127140
#if defined(irix5)
128141
# defineUSE_POSIX_TIME
142+
# define USE_POSIX_SIGNALS
129143
# defineNEED_ISINF
130144
# define NO_EMPTY_STMTS
131145
# defineNO_VFORK
132146
# defineHAVE_TZSET
147+
# defineSYSV_DIRENT
133148
#endif
134149

135150
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp