After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 141252 - poll(2) is in <poll.h>, not <sys/poll.h> per SUS standard
poll(2) is in <poll.h>, not <sys/poll.h> per SUS standard
Status: RESOLVED DUPLICATE of bug 141251
Product: glib
Classification: Platform
Component: general
1.2.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2004-04-28 02:14 UTC by Todd Vierling
Modified: 2008-04-28 20:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Todd Vierling 2004-04-28 02:14:34 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.
Comment 1 Owen Taylor 2004-04-28 02:16:49 UTC

*** This bug has been marked as a duplicate of 141251 ***