[Boost-bugs] [Boost C++ Libraries] #2660: `fd_set' has not been declared

Subject: [Boost-bugs] [Boost C++ Libraries] #2660: `fd_set' has not been declared
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-01-16 12:13:14


#2660: `fd_set' has not been declared
-------------------------------------+--------------------------------------
 Reporter: jens.luedicke_at_[hidden] | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: None
  Version: Boost 1.37.0 | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 I'm using Boost.Thread and Boost.Asio on Cygwin.

 If I include boost/thread.hpp, without boost/asio.hpp first,
 I get a compiler error:

 In file included from /usr/include/cygwin/sys_time.h:13,
                  from /usr/include/sys/time.h:27,
                  from
 D:/local/boost/include/boost-1_37/boost/date_time/c_time.hpp:28,
                  from
 D:/local/boost/include/boost-1_37/boost/date_time/microsec_time_clock.hpp:18,
                  from
 D:/local/boost/include/boost-1_37/boost/thread/thread_time.hpp:9,
                  from
 D:/local/boost/include/boost-1_37/boost/thread/locks.hpp:12,
                  from
 D:/local/boost/include/boost-1_37/boost/thread/pthread/mutex.hpp:11,
                  from
 D:/local/boost/include/boost-1_37/boost/thread/mutex.hpp:16,
                  from
 D:/local/boost/include/boost-1_37/boost/thread/pthread/thread_data.hpp:12,
                  from
 D:/local/boost/include/boost-1_37/boost/thread/thread.hpp:17,
                  from
 D:/local/boost/include/boost-1_37/boost/thread.hpp:13,
                  from src/flightpath_controller.cpp:27:
 /usr/include/sys/select.h:31: error: `fd_set' has not been declared
 /usr/include/sys/select.h:31: error: `fd_set' has not been declared
 /usr/include/sys/select.h:31: error: `fd_set' has not been declared
 /usr/include/sys/select.h:33: error: `fd_set' has not been declared
 /usr/include/sys/select.h:33: error: `fd_set' has not been declared
 /usr/include/sys/select.h:33: error: `fd_set' has not been declared
 make: *** [build/flightpath_controller.o] Error 1

 A workaround for this issue is to include boost/asio.hpp before
 boost/thread.hpp within the given sourcefile.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2660>
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:49:59 UTC