Re: BUG #1008: fe-misc.c has an ifdef for HAVE_POLL, should be HAVE_POLL_H - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1008: fe-misc.c has an ifdef for HAVE_POLL, should be HAVE_POLL_H
Date
Msg-id 14584.1071519650@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1008: fe-misc.c has an ifdef for HAVE_POLL, should be HAVE_POLL_H  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
List pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> Description:        fe-misc.c has an ifdef for HAVE_POLL, should be HAVE_POLL_H

That's entirely wrong.  The configure code sets up two configuration
symbols: HAVE_POLL_H indicates whether the header <poll.h> exists,
while HAVE_POLL indicates whether the library function poll() is
available.  The code in fe-misc.c is correct (in each place it uses
these symbols).  If HAVE_POLL isn't getting set by configure, then
that's a bug and you should look into the reason why.

FWIW, this code does compile on OS X 10.2.* and 10.3, so if it fails in
10.3.1 then it's because of something Apple changed recently.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1008: fe-misc.c has an ifdef for HAVE_POLL, should be HAVE_POLL_H
Next
From: Bruce Momjian
Date:
Subject: Re: netmask(inet) function broken in 7.4