GNOME Bugzilla – Bug 141252
poll(2) is in <poll.h>, not <sys/poll.h> per SUS standard
Last modified: 2008-04-28 20:04:23 UTC
The following is the same issue as Bug 141251, also present in GLib2. Compile GLib on Interix 3.5, which has <poll.h> but no <sys/poll.h>. Fail because the poll() symbol was found by "configure", but no header file was included when compiling gmain.c to get the POLL* constants and prototype. The Single Unix Specification standard explicitly states that these definitions are in <poll.h>, not <sys/poll.h>. But, it's possible that older systems only have <sys/poll.h>. Fix: Add "poll.h" to the list of headers searched in configure.in, and if present (HAVE_POLL_H), use that *in preference to* <sys/poll.h> in gmain.c.
*** This bug has been marked as a duplicate of 141251 ***