#1125 closed bug (invalid)
<poll.h> should be available also under <sys/poll.h>
Reported by: | kaliber | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | System | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Since we have <poll.h> in Haiku, it should be available also under <sys/poll.h>.
Change History (5)
comment:1 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
follow-up: 4 comment:2 by , 18 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Google codesearch says that <sys/poll.h> is two times popular than <poll.h>
http://www.google.com/codesearch?hl=pl&lr=&q=%23include%5C+%2B%3Csys%2Fpoll.h%3E&btnG=Szukaj
comment:3 by , 18 years ago
OpenGroup says it's <poll.h> http://www.opengroup.org/onlinepubs/007908799/xsh/poll.h.html
comment:4 by , 18 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Replying to kaliber:
Google codesearch says that <sys/poll.h> is two times popular than <poll.h>
We're no lemmings, but we're following the specs where it makes sense :-)
comment:5 by , 18 years ago
Clean unix apps would just use:
AC_CHECK_HEADER(sys/poll.h) AC_CHECK_HEADER(poll.h)
and:
#ifdef HAVE_SYS_POLL_H #include <sys/poll.h> #else #ifdef HAVE_POLL_H #include <poll.h> #else #error missing poll.h #endif #endif
Others aren't worth porting anyway.
Note:
See TracTickets
for help on using tickets.
It may happen if we see the need, but since <sys/poll.h> is no standard header, I don't think this is necessary.