[Boost-bugs] [Boost C++ Libraries] #12419: use POSIX poll.h instead of glibc-specific sys/poll.h

Subject: [Boost-bugs] [Boost C++ Libraries] #12419: use POSIX poll.h instead of glibc-specific sys/poll.h
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-08-29 08:41:54


#12419: use POSIX poll.h instead of glibc-specific sys/poll.h
------------------------------+----------------------------
 Reporter: git@… | Owner: chris_kohlhoff
     Type: Patches | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------------
 POSIX specifies that <poll.h> is the correct header to
     include for poll()
       http://pubs.opengroup.org/onlinepubs/009695399/functions/poll.html
     whereas <sys/poll.h> is only needed for ancient glibc (<2.3),
     so let's follow POSIX instead.

     As a side-effect, this silences a warnings when compiling
     against the musl C-library:

     In file included from ./boost/asio/detail/socket_types.hpp:61:0,
                      from ./boost/asio/ip/address_v4.hpp:21,
                      from ./boost/asio/ip/address.hpp:21,
                      from libs/log/src/init_from_settings.cpp:65:
     <sysroot>/usr/include/sys/poll.h:1:2: warning: #warning redirecting
 incorrect #include <sys/poll.h> to <poll.h> [-Wcpp]
      #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
       ^~~~~~~

     etc.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12419>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC