]> granicus.if.org Git - postgresql/commit
Include <sys/select.h> where needed
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 27 Sep 2016 04:05:21 +0000 (01:05 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 27 Sep 2016 04:05:21 +0000 (01:05 -0300)
commitf0631bda9bf729161490da76414648dafcc0adbe
tree60e84663113adac11bd96940445d36de542609e0
parenta721a1ba9cf6c86cb52f1bf325d5a27b64e870d6
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.
src/backend/libpq/auth.c
src/backend/postmaster/pgstat.c
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_recvlogical.c
src/bin/pg_basebackup/receivelog.c
src/bin/pg_dump/parallel.c
src/bin/scripts/vacuumdb.c
src/port/pgsleep.c
src/test/examples/testlibpq2.c