diff options
| author | Martin Braun <martin.braun@ettus.com> | 2016-02-08 11:00:05 -0800 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2016-02-08 11:00:05 -0800 | 
| commit | e9bd85c60b5de5f2979d8bf2886d3931aa03f1c8 (patch) | |
| tree | b56a5fa74ab5fdf9785e2a63d5b320a9e7b389cd | |
| parent | 502d952a085c7940945f7ec406db3a46df5c8311 (diff) | |
| parent | 97d338d2f8adabab13992578ece4d4b6b5d6a530 (diff) | |
| download | uhd-e9bd85c60b5de5f2979d8bf2886d3931aa03f1c8.tar.gz uhd-e9bd85c60b5de5f2979d8bf2886d3931aa03f1c8.tar.bz2 uhd-e9bd85c60b5de5f2979d8bf2886d3931aa03f1c8.zip  | |
Merge branch 'maint'
| -rw-r--r-- | host/CMakeLists.txt | 9 | ||||
| -rw-r--r-- | host/lib/usrp/b200/b200_io_impl.cpp | 4 | 
2 files changed, 9 insertions, 4 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index f7a35fc8b..d3ae2b71c 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -1,5 +1,5 @@  # -# Copyright 2010-2015 Ettus Research LLC +# Copyright 2010-2016 Ettus Research LLC  #  # This program is free software: you can redistribute it and/or modify  # it under the terms of the GNU General Public License as published by @@ -162,6 +162,7 @@ IF(MSVC)          -D_CRT_SECURE_NO_DEPRECATE          -D_CRT_NONSTDC_NO_WARNINGS          -D_CRT_NONSTDC_NO_DEPRECATE +        -D_WINSOCK_DEPRECATED_NO_WARNINGS      )      ADD_DEFINITIONS(/MP) #multi-threaded build      ADD_DEFINITIONS(/bigobj) #Increases the number of addressable sections in an .obj file. @@ -187,10 +188,14 @@ SET(BOOST_REQUIRED_COMPONENTS      program_options      regex      system -    thread      unit_test_framework      serialization  ) +IF(MINGW) +    LIST(APPEND BOOST_REQUIRED_COMPONENTS thread_win32) +ELSE() +    LIST(APPEND BOOST_REQUIRED_COMPONENTS thread) +ENDIF()  IF(UNIX AND NOT BOOST_ROOT AND EXISTS "/usr/lib64")      LIST(APPEND BOOST_LIBRARYDIR "/usr/lib64") #fedora 64-bit fix diff --git a/host/lib/usrp/b200/b200_io_impl.cpp b/host/lib/usrp/b200/b200_io_impl.cpp index 279901208..98347b114 100644 --- a/host/lib/usrp/b200/b200_io_impl.cpp +++ b/host/lib/usrp/b200/b200_io_impl.cpp @@ -293,7 +293,7 @@ boost::optional<uhd::msg_task::msg_type_t> b200_impl::handle_async_task(  {      managed_recv_buffer::sptr buff = xport->get_recv_buff();      if (not buff or buff->size() < 8) -        return uhd::msg_task::msg_type_t(0, uhd::msg_task::msg_payload_t()); +        return boost::none;      const boost::uint32_t sid = uhd::wtohx(buff->cast<const boost::uint32_t *>()[1]);      switch (sid) { @@ -357,7 +357,7 @@ boost::optional<uhd::msg_task::msg_type_t> b200_impl::handle_async_task(      default:          UHD_MSG(error) << "Got a ctrl packet with unknown SID " << sid << std::endl;      } -    return uhd::msg_task::msg_type_t(0, uhd::msg_task::msg_payload_t()); +    return boost::none;  }  /***********************************************************************  | 
