aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/parallel.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2016-09-27 01:05:21 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2016-09-27 01:05:21 -0300
commit8d11c303d01087186605d7ea53bfc4b7f53725f4 (patch)
treee42809e54ba3fb69bc8f8e4acdfbd251b5aa4017 /src/bin/pg_dump/parallel.c
parent1e903c2f00f8b94ae34a8503f63e37b2963eb2cf (diff)
downloadpostgresql-8d11c303d01087186605d7ea53bfc4b7f53725f4.tar.gz
postgresql-8d11c303d01087186605d7ea53bfc4b7f53725f4.zip
Include <sys/select.h> where needed
<sys/select.h> is required by POSIX.1-2001 to get the prototype of select(2), but nearly no systems enforce that because older standards let you get away with including some other headers. Recent OpenBSD hacking has removed that frail touch of friendliness, however, which broke some compiles; fix all the way back to 9.1 by adding the required standard. Only vacuumdb.c was reported to fail, but it seems easier to fix the whole lot in a fell swoop. Per bug #14334 by Sean Farrell.
Diffstat (limited to 'src/bin/pg_dump/parallel.c')
-rw-r--r--src/bin/pg_dump/parallel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/pg_dump/parallel.c b/src/bin/pg_dump/parallel.c
index 51a8eee369d..ce3a06ae816 100644
--- a/src/bin/pg_dump/parallel.c
+++ b/src/bin/pg_dump/parallel.c
@@ -59,6 +59,10 @@
#include "postgres_fe.h"
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+
#include "parallel.h"
#include "pg_backup_utils.h"