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

Commitd527e40

Browse files
macdicepull[bot]
authored andcommitted
Remove configure probe for sys/select.h.
<sys/select.h> is in SUSv3 and every targeted Unix system has it.Provide an empty header in src/include/port/win32 so that we caninclude it unguarded even on Windows.Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/CA%2BhUKG%2BL_3brvh%3D8e0BW_VfX9h7MtwgN%3DnFHP5o7X2oZucY9dg%40mail.gmail.com
1 parent52ea682 commitd527e40

File tree

20 files changed

+17
-50
lines changed

20 files changed

+17
-50
lines changed

‎configure‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13874,7 +13874,7 @@ $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
1387413874
fi
1387513875

1387613876

13877-
for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h net/if.h netinet/tcp.h sys/epoll.h sys/event.h sys/ipc.h sys/personality.h sys/prctl.h sys/procctl.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/signalfd.h sys/sockio.h sys/ucred.h termios.h ucred.h
13877+
for ac_header in atomic.h copyfile.h execinfo.h getopt.h ifaddrs.h langinfo.h mbarrier.h net/if.h netinet/tcp.h sys/epoll.h sys/event.h sys/ipc.h sys/personality.h sys/prctl.h sys/procctl.h sys/resource.h sys/sem.h sys/shm.h sys/signalfd.h sys/sockio.h sys/ucred.h termios.h ucred.h
1387813878
do :
1387913879
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1388013880
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"

‎configure.ac‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,6 @@ AC_CHECK_HEADERS(m4_normalize([
14611461
sys/prctl.h
14621462
sys/procctl.h
14631463
sys/resource.h
1464-
sys/select.h
14651464
sys/sem.h
14661465
sys/shm.h
14671466
sys/signalfd.h

‎doc/src/sgml/libpq.sgml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9211,11 +9211,9 @@ main(int argc, char **argv)
92119211
#include <stdlib.h>
92129212
#include <string.h>
92139213
#include <errno.h>
9214+
#include <sys/select.h>
92149215
#include <sys/time.h>
92159216
#include <sys/types.h>
9216-
#ifdef HAVE_SYS_SELECT_H
9217-
#include <sys/select.h>
9218-
#endif
92199217

92209218
#include "libpq-fe.h"
92219219

‎src/backend/libpq/auth.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@
1616
#include"postgres.h"
1717

1818
#include<sys/param.h>
19+
#include<sys/select.h>
1920
#include<sys/socket.h>
2021
#include<netinet/in.h>
2122
#include<pwd.h>
2223
#include<unistd.h>
23-
#ifdefHAVE_SYS_SELECT_H
24-
#include<sys/select.h>
25-
#endif
2624

2725
#include"commands/user.h"
2826
#include"common/ip.h"

‎src/backend/postmaster/postmaster.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,14 @@
7070
#include<time.h>
7171
#include<sys/wait.h>
7272
#include<ctype.h>
73+
#include<sys/select.h>
7374
#include<sys/stat.h>
7475
#include<sys/socket.h>
7576
#include<fcntl.h>
7677
#include<sys/param.h>
7778
#include<netdb.h>
7879
#include<limits.h>
7980

80-
#ifdefHAVE_SYS_SELECT_H
81-
#include<sys/select.h>
82-
#endif
83-
8481
#ifdefUSE_BONJOUR
8582
#include<dns_sd.h>
8683
#endif

‎src/backend/tcop/postgres.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
#include<limits.h>
2424
#include<signal.h>
2525
#include<unistd.h>
26-
#include<sys/socket.h>
27-
#ifdefHAVE_SYS_SELECT_H
2826
#include<sys/select.h>
29-
#endif
27+
#include<sys/socket.h>
3028
#ifdefHAVE_SYS_RESOURCE_H
3129
#include<sys/time.h>
3230
#include<sys/resource.h>

‎src/bin/pg_basebackup/pg_basebackup.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@
1616
#include<unistd.h>
1717
#include<dirent.h>
1818
#include<limits.h>
19+
#include<sys/select.h>
1920
#include<sys/stat.h>
2021
#include<sys/wait.h>
2122
#include<signal.h>
2223
#include<time.h>
23-
#ifdefHAVE_SYS_SELECT_H
24-
#include<sys/select.h>
25-
#endif
2624
#ifdefHAVE_LIBZ
2725
#include<zlib.h>
2826
#endif

‎src/bin/pg_basebackup/pg_recvlogical.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@
1414

1515
#include<dirent.h>
1616
#include<limits.h>
17+
#include<sys/select.h>
1718
#include<sys/stat.h>
1819
#include<unistd.h>
19-
#ifdefHAVE_SYS_SELECT_H
20-
#include<sys/select.h>
21-
#endif
2220

2321
#include"access/xlog_internal.h"
2422
#include"common/fe_memutils.h"

‎src/bin/pg_basebackup/receivelog.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@
1414

1515
#include"postgres_fe.h"
1616

17+
#include<sys/select.h>
1718
#include<sys/stat.h>
1819
#include<unistd.h>
19-
#ifdefHAVE_SYS_SELECT_H
20-
#include<sys/select.h>
21-
#endif
2220

2321
#include"access/xlog_internal.h"
2422
#include"common/file_utils.h"

‎src/bin/pg_dump/parallel.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,12 @@
5353
#include"postgres_fe.h"
5454

5555
#ifndefWIN32
56+
#include<sys/select.h>
5657
#include<sys/wait.h>
5758
#include<signal.h>
5859
#include<unistd.h>
5960
#include<fcntl.h>
6061
#endif
61-
#ifdefHAVE_SYS_SELECT_H
62-
#include<sys/select.h>
63-
#endif
6462

6563
#include"fe_utils/string_utils.h"
6664
#include"parallel.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp