aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-misc.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-08-13 23:33:34 +1200
committerThomas Munro <tmunro@postgresql.org>2022-08-14 00:09:47 +1200
commit7e50b4e3c52aaa13e86e0560d1382844074c9f1b (patch)
tree3f64c84bc197eec5d0853962ffef0006ae182d4b /src/interfaces/libpq/fe-misc.c
parent077bf2f2750076675ae7195c58bec9a62d62fd34 (diff)
downloadpostgresql-7e50b4e3c52aaa13e86e0560d1382844074c9f1b.tar.gz
postgresql-7e50b4e3c52aaa13e86e0560d1382844074c9f1b.zip
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/interfaces/libpq/fe-misc.c')
-rw-r--r--src/interfaces/libpq/fe-misc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/interfaces/libpq/fe-misc.c b/src/interfaces/libpq/fe-misc.c
index d76bb3957ae..795500c5935 100644
--- a/src/interfaces/libpq/fe-misc.c
+++ b/src/interfaces/libpq/fe-misc.c
@@ -37,15 +37,13 @@
#include "win32.h"
#else
#include <unistd.h>
+#include <sys/select.h>
#include <sys/time.h>
#endif
#ifdef HAVE_POLL_H
#include <poll.h>
#endif
-#ifdef HAVE_SYS_SELECT_H
-#include <sys/select.h>
-#endif
#include "libpq-fe.h"
#include "libpq-int.h"