diff options
author | Thomas Munro | 2022-08-13 11:33:34 +0000 |
---|---|---|
committer | Thomas Munro | 2022-08-13 12:09:47 +0000 |
commit | 7e50b4e3c52aaa13e86e0560d1382844074c9f1b (patch) | |
tree | 3f64c84bc197eec5d0853962ffef0006ae182d4b /src/backend | |
parent | 077bf2f2750076675ae7195c58bec9a62d62fd34 (diff) |
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 can
include 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
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/libpq/auth.c | 4 | ||||
-rw-r--r-- | src/backend/postmaster/postmaster.c | 5 | ||||
-rw-r--r-- | src/backend/tcop/postgres.c | 4 |
3 files changed, 3 insertions, 10 deletions
diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index 2d9ab7edceb..41d60e06d0c 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -16,13 +16,11 @@ #include "postgres.h" #include <sys/param.h> +#include <sys/select.h> #include <sys/socket.h> #include <netinet/in.h> #include <pwd.h> #include <unistd.h> -#ifdef HAVE_SYS_SELECT_H -#include <sys/select.h> -#endif #include "commands/user.h" #include "common/ip.h" diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 81cb585891b..227bd9891ec 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -70,6 +70,7 @@ #include <time.h> #include <sys/wait.h> #include <ctype.h> +#include <sys/select.h> #include <sys/stat.h> #include <sys/socket.h> #include <fcntl.h> @@ -77,10 +78,6 @@ #include <netdb.h> #include <limits.h> -#ifdef HAVE_SYS_SELECT_H -#include <sys/select.h> -#endif - #ifdef USE_BONJOUR #include <dns_sd.h> #endif diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 11e802eba98..671edcb3c7a 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -23,10 +23,8 @@ #include <limits.h> #include <signal.h> #include <unistd.h> -#include <sys/socket.h> -#ifdef HAVE_SYS_SELECT_H #include <sys/select.h> -#endif +#include <sys/socket.h> #ifdef HAVE_SYS_RESOURCE_H #include <sys/time.h> #include <sys/resource.h> |