Skip to content

Commit

Permalink
host: include cstdint before boost/lockfree/queue.hpp
Browse files Browse the repository at this point in the history
cmake will fail when checking CHECK_WORKING_CXX_BOOST_ATOMICS
without "#include <cstdint>".  And the same with other two c++
files.
  • Loading branch information
setarcos committed Feb 11, 2025
1 parent 0dede88 commit bda9569
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions host/cmake/Modules/UHDAtomics.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ endfunction(CHECK_WORKING_CXX_ATOMICS64)
function(CHECK_WORKING_CXX_BOOST_ATOMICS varname)
set(CMAKE_REQUIRED_INCLUDES ${Boost_INCLUDE_DIRS})
CHECK_CXX_SOURCE_COMPILES("
#include <cstdint>
#include <boost/lockfree/queue.hpp>
boost::lockfree::queue<int> queue(1);
int main() {
Expand Down
1 change: 1 addition & 0 deletions host/lib/include/uhdlib/rfnoc/tx_async_msg_queue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#pragma once

#include <uhd/types/metadata.hpp>
#include <cstdint>
#include <boost/lockfree/queue.hpp>

namespace uhd { namespace rfnoc {
Expand Down
1 change: 1 addition & 0 deletions host/lib/transport/offload_io_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <uhdlib/transport/offload_io_service_client.hpp>
#include <uhdlib/utils/semaphore.hpp>
#include <condition_variable>
#include <cstdint>
#include <boost/lockfree/queue.hpp>
#include <atomic>
#include <chrono>
Expand Down

0 comments on commit bda9569

Please sign in to comment.