[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

poll(2) inconsistancy



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