head 1.2; access; symbols pkgsrc-2014Q3:1.1.0.2 pkgsrc-2014Q3-base:1.1; locks; strict; comment @// @; 1.2 date 2014.12.28.16.57.36; author fhajny; state dead; branches; next 1.1; commitid Mh56hvXRLkKurP3y; 1.1 date 2014.08.18.10.35.13; author fhajny; state Exp; branches; next ; commitid 9n3uAptGnUUWyPMx; desc @@ 1.2 log @Remove patches that are unnecessary in 1.57.0. Fixes build on SunOS. @ text @$NetBSD: patch-boost_asio_detail_posix__fd__set__adapter.hpp,v 1.1 2014/08/18 10:35:13 fhajny Exp $ Revert a upstream Windows optimization commit that breaks /dev/poll platforms like SunOS. See https://svn.boost.org/trac/boost/ticket/10350 --- boost/asio/detail/posix_fd_set_adapter.hpp.orig 2014-08-13 12:13:05.246078647 +0000 +++ boost/asio/detail/posix_fd_set_adapter.hpp @@@@ -23,7 +23,6 @@@@ #include #include -#include #include #include @@@@ -61,20 +60,6 @@@@ public: return false; } - void set(reactor_op_queue& operations, op_queue& ops) - { - reactor_op_queue::iterator i = operations.begin(); - while (i != operations.end()) - { - reactor_op_queue::iterator op_iter = i++; - if (!set(op_iter->first)) - { - boost::system::error_code ec(error::fd_set_failure); - operations.cancel_operations(op_iter, ops, ec); - } - } - } - bool is_set(socket_type descriptor) const { return FD_ISSET(descriptor, &fd_set_) != 0; @@@@ -90,18 +75,6 @@@@ public: return max_descriptor_; } - void perform(reactor_op_queue& operations, - op_queue& ops) const - { - reactor_op_queue::iterator i = operations.begin(); - while (i != operations.end()) - { - reactor_op_queue::iterator op_iter = i++; - if (is_set(op_iter->first)) - operations.perform_operations(op_iter, ops); - } - } - private: mutable fd_set fd_set_; socket_type max_descriptor_; @ 1.1 log @Fix build on SunOS: transform _XOPEN_SOURCE=500 args where needed, and revert an upstream commit (https://svn.boost.org/trac/boost/ticket/10350). The latter part deserves a better fix (finish what upstream neglected). @ text @d1 1 a1 1 $NetBSD$ @