pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Include <sys/select.h> where needed
Date: Tue, 27 Sep 2016 04:07:08 +0000
Message-ID: <E1bojfg-0004s5-LU@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/51c3e9fade76c12e4aa37bffdf800bbf74fb3fb1

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(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (7+ messages)  latest in thread

Message-ID: <E1bojfg-0004s5-LU@gemulon.postgresql.org>
Permalink:  ../E1bojfg-0004s5-LU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1bojfg-0004s5-LU@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Include <sys/select.h> where needed
  In-Reply-To: <E1bojfg-0004s5-LU@gemulon.postgresql.org>
  References: <E1bojfg-0004s5-LU@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox