[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
poll(2) inconsistancy
- To: bugs_(_at_)_openbsd_(_dot_)_org
- Subject: poll(2) inconsistancy
- From: "Brian J. Kifiak" <bk_(_at_)_rt_(_dot_)_fm>
- Date: 1 Mar 2001 00:36:56 -0000
- Mail-followup-to: bugs_(_at_)_openbsd_(_dot_)_org
Hi,
A configure script for a program I'm working with uses a test
program similair to
#include <sys/poll.h>
int main()
{
poll((struct pollfd *) 0, 0, 0);
return 0;
}
in order to decide if poll is available.
This program fails to compile with the error
/usr/include/sys/poll.h:51: syntax error before `__P'
I can workaround this problem by including stdio.h in the test
program.
So, either poll.h is broken or poll(2) needs to indicate that
stdio.h needs to be included.
I would hope that poll.h is broken as other implementations of poll
do not require stdio.h.
Visit your host, monkey.org