Ticket #4578: boost-1.39.0-hpux-gcc-asio.patch

File boost-1.39.0-hpux-gcc-asio.patch, 883 bytes (added by Michael Haubenwallner <michael.haubenwallner@…>, 12 years ago)

Patch for boost-1.39.0 to always use pselect() on hpux when available

  • boost/asio/detail/socket_types.hpp

    old new  
    9696# include <sys/ioctl.h>
    9797# include <sys/poll.h>
    9898# include <sys/types.h>
    99 # if defined(__hpux) && !defined(__HP_aCC)
     99# if defined(__hpux)
    100100#  include <sys/time.h>
    101 # else
     101# endif
     102# if !defined(__hpux) || defined(__SELECT)
    102103#  include <sys/select.h>
    103104# endif
    104105# include <sys/socket.h>
  • boost/asio/detail/socket_ops.hpp

    old new  
    636636    timeout->tv_usec = 1000;
    637637#endif // defined(BOOST_WINDOWS) || defined(__CYGWIN__)
    638638
    639 #if defined(__hpux) && defined(__HP_aCC)
     639#if defined(__hpux) && defined(__SELECT)
    640640  timespec ts;
    641641  ts.tv_sec = timeout ? timeout->tv_sec : 0;
    642642  ts.tv_nsec = timeout ? timeout->tv_usec * 1000 : 0;