Ticket #11654: boost_asio_4_vxworks.patch

File boost_asio_4_vxworks.patch, 2.1 KB (added by Brian Kuhl <brian.kuhl@…>, 7 years ago)
  • boost_1_57_0/boost/asio/detail/impl/socket_ops.ipp

    diff -uNdr boost_orig/asio/detail/impl/socket_ops.ipp boost/asio/detail/impl/socket_ops.ipp
     
    544544  // get spurious readiness notifications from the reactor.
    545545#if defined(BOOST_ASIO_WINDOWS) \
    546546  || defined(__CYGWIN__) \
    547   || defined(__SYMBIAN32__)
     547  || defined(__SYMBIAN32__) \
     548  || defined(__VXWORKS__)
    548549  fd_set write_fds;
    549550  FD_ZERO(&write_fds);
    550551  FD_SET(s, &write_fds);
     
    593594int socketpair(int af, int type, int protocol,
    594595    socket_type sv[2], boost::system::error_code& ec)
    595596{
    596 #if defined(BOOST_ASIO_WINDOWS) || defined(__CYGWIN__)
     597#if defined(BOOST_ASIO_WINDOWS) || defined(__CYGWIN__) || defined(__VXWORKS__)
    597598  (void)(af);
    598599  (void)(type);
    599600  (void)(protocol);
     
    17731774
    17741775#if defined(BOOST_ASIO_WINDOWS) \
    17751776  || defined(__CYGWIN__) \
    1776   || defined(__SYMBIAN32__)
     1777  || defined(__SYMBIAN32__) \
     1778  || defined(__VXWORKS__)
    17771779  fd_set fds;
    17781780  FD_ZERO(&fds);
    17791781  FD_SET(s, &fds);
     
    18141816
    18151817#if defined(BOOST_ASIO_WINDOWS) \
    18161818  || defined(__CYGWIN__) \
    1817   || defined(__SYMBIAN32__)
     1819  || defined(__SYMBIAN32__) \
     1820  || defined(__VXWORKS__)
    18181821  fd_set fds;
    18191822  FD_ZERO(&fds);
    18201823  FD_SET(s, &fds);
     
    18551858
    18561859#if defined(BOOST_ASIO_WINDOWS) \
    18571860  || defined(__CYGWIN__) \
    1858   || defined(__SYMBIAN32__)
     1861  || defined(__SYMBIAN32__) \
     1862  || defined(__VXWORKS__)
    18591863  fd_set write_fds;
    18601864  FD_ZERO(&write_fds);
    18611865  FD_SET(s, &write_fds);
  • boost_1_57_0/boost/asio/detail/socket_types.hpp

    diff -uNdr boost_orig/asio/detail/socket_types.hpp boost/asio/detail/socket_types.hpp
     
    5353# include <boost/asio/detail/old_win_sdk_compat.hpp>
    5454#else
    5555# include <sys/ioctl.h>
    56 # if !defined(__SYMBIAN32__)
     56# if !defined(__SYMBIAN32__) && !defined(__VXWORKS__)
    5757#  include <sys/poll.h>
    5858# endif
    5959# include <sys/types.h>