Boost C++ Libraries: Ticket #12419: use POSIX poll.h instead of glibc-specific sys/poll.h https://svn.boost.org/trac10/ticket/12419 <blockquote> <p> POSIX specifies that &lt;poll.h&gt; is the correct header to include for poll() </p> <blockquote> <p> <a class="ext-link" href="http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.html"><span class="icon">​</span>http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.html</a> </p> </blockquote> <p> whereas &lt;sys/poll.h&gt; is only needed for ancient glibc (&lt;2.3), so let's follow POSIX instead. </p> </blockquote> <p> </p> <blockquote> <p> As a side-effect, this silences a warnings when compiling against the musl C-library: </p> </blockquote> <p> </p> <blockquote> <p> In file included from ./boost/asio/detail/socket_types.hpp:61:0, </p> <blockquote> <p> from ./boost/asio/ip/address_v4.hpp:21, from ./boost/asio/ip/address.hpp:21, from libs/log/src/init_from_settings.cpp:65: </p> </blockquote> <p> &lt;sysroot&gt;/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include &lt;sys/poll.h&gt; to &lt;poll.h&gt; [-Wcpp] </p> <blockquote> <p> #warning redirecting incorrect #include &lt;sys/poll.h&gt; to &lt;poll.h&gt; </p> <blockquote> <p> <sup><del></del><del> </del></sup></p> </blockquote> </blockquote> </blockquote> <p> </p> <blockquote> <p> etc. </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12419 Trac 1.4.3 git@… Mon, 29 Aug 2016 08:42:26 GMT attachment set https://svn.boost.org/trac10/ticket/12419 https://svn.boost.org/trac10/ticket/12419 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">0001-use-POSIX-poll.h-instead-of-glibc-specific-sys-poll..patch</span> </li> </ul> <p> use POSIX poll.h instead of glibc-specific sys/poll.h </p> Ticket