pgsql: Include <sys/select.h> where needed

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Include <sys/select.h> where needed
Date: 2016-09-27 04:07:08
Message-ID: E1bojfg-0004s7-Ll@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f0631bda9bf729161490da76414648dafcc0adbe

Modified Files
--------------
src/backend/libpq/auth.c | 3 +++
src/backend/postmaster/pgstat.c | 3 +++
src/bin/pg_basebackup/pg_basebackup.c | 4 +++-
src/bin/pg_basebackup/pg_recvlogical.c | 3 +++
src/bin/pg_basebackup/receivelog.c | 3 +++
src/bin/pg_dump/parallel.c | 4 ++++
src/bin/scripts/vacuumdb.c | 4 ++++
src/port/pgsleep.c | 3 +++
src/test/examples/testlibpq2.c | 4 ++++
9 files changed, 30 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fabien COELHO 2016-09-27 06:38:24 Re: pgsql: Refactor script execution state machine in pgbench.
Previous Message Peter Eisentraut 2016-09-27 02:35:27 pgsql: Fix some typos in comment