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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: tpherndon(at)mindspring(dot)com
Cc: "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #1008: fe-misc.c has an ifdef for HAVE_POLL, should be HAVE_POLL_H
Date: 2003-12-15 20:20:50
Message-ID: 14584.1071519650@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2003-12-15 23:28:58 Re: netmask(inet) function broken in 7.4
Previous Message PostgreSQL Bugs List 2003-12-15 18:51:06 BUG #1008: fe-misc.c has an ifdef for HAVE_POLL, should be HAVE_POLL_H