[FFmpeg-devel] poll.h vs. sys/poll.h

Måns Rullgård mans
Thu Aug 14 17:29:40 CEST 2008


Diego Biurrun wrote:
> Which is the correct location for the poll.h header?  We have both
>
> ffserver.c:#include <poll.h>
> libavdevice/dv1394.c:#include <sys/poll.h>
>
> but configure only checks for poll.h, not sys/poll.h.  On my glibc-based
> system poll.h just contains #include <sys/poll.h>.  OK to change poll.h
> to sys/poll.h then?

No, very much no.

poll.h is standard, whereas sys/poll.h is not.

Do not use glibc headers as an authoritative reference.  If in doubt,
consult the official spec.  It is freely available online at
http://www.opengroup.org/onlinepubs/009695399/toc.htm

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list