Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#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 axeld, 18 years ago

Resolution: invalid
Status: newclosed

It may happen if we see the need, but since <sys/poll.h> is no standard header, I don't think this is necessary.

comment:2 by kaliber, 18 years ago

Resolution: invalid
Status: closedreopened

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

in reply to:  2 comment:4 by axeld, 18 years ago

Resolution: invalid
Status: reopenedclosed

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 mmu_man, 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.