From d97ef4caa3a064d9641465fd42dff19476ad2621 Mon Sep 17 00:00:00 2001 From: Moritz Fischer Date: Mon, 9 Dec 2013 09:18:05 +0100 Subject: msg_task: Fixed build on Ubuntu 10.04 LTS. * Includes for 'uint32_t/uint8_t' were missing. Compilers that care don't like if we just use uint32_t like this. * For portability boost::uint32_t and boost::uint8_t should preferrably be used. Signed-off-by: Moritz Fischer --- host/include/uhd/utils/msg_task.hpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'host') diff --git a/host/include/uhd/utils/msg_task.hpp b/host/include/uhd/utils/msg_task.hpp index ebb29af08..40ee65cb1 100644 --- a/host/include/uhd/utils/msg_task.hpp +++ b/host/include/uhd/utils/msg_task.hpp @@ -24,14 +24,15 @@ #include #include #include +#include #include namespace uhd{ class UHD_API msg_task : boost::noncopyable{ public: typedef boost::shared_ptr sptr; - typedef std::vector msg_payload_t; - typedef std::pair msg_type_t; + typedef std::vector msg_payload_t; + typedef std::pair msg_type_t; typedef boost::function(void)> task_fcn_type; /* @@ -41,9 +42,9 @@ namespace uhd{ */ virtual msg_payload_t get_msg_from_dump_queue(boost::uint32_t sid) = 0; - inline static std::vector buff_to_vector(uint8_t* p, size_t n) { + inline static std::vector buff_to_vector(boost::uint8_t* p, size_t n) { if(p and n > 0){ - std::vector v(n); + std::vector v(n); memcpy(&v.front(), p, n); return v; } -- cgit v1.2.3