diff options
author | Michael Dickens <michael.dickens@ettus.com> | 2019-05-26 14:36:53 -0400 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-06-15 17:20:15 -0700 |
commit | 82251fad9cf3314124d4a91e97a35f6b0f78e5bb (patch) | |
tree | 430fc2e0cd40b3d6d27def0293ea759bb0029e6b /gr-zeromq/lib/pull_msg_source_impl.h | |
parent | 6996d1b7ee20fb7611068906bb64886eb5b514ef (diff) |
zeromq: fixes to allow building using CPPZMQ 4.3.1 as well as prior
CPPZMQ deprecated some prototypes of "recv" and "send" in some version prior to 4.3.1. The "recv" one will be removed in 4.3.1 and thus will generate an error since no valid prototype exists in the way "recv" is currently being call. This fix updates our usage of both calls to work with the "new" and "old" ways, depending on the CPPZMQ version. Move the CPPZMQ header inclusion and a macro determine which version to use into a common local header.
Diffstat (limited to 'gr-zeromq/lib/pull_msg_source_impl.h')
-rw-r--r-- | gr-zeromq/lib/pull_msg_source_impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-zeromq/lib/pull_msg_source_impl.h b/gr-zeromq/lib/pull_msg_source_impl.h index 25cd2dee31..db01e8d038 100644 --- a/gr-zeromq/lib/pull_msg_source_impl.h +++ b/gr-zeromq/lib/pull_msg_source_impl.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2013,2014 Free Software Foundation, Inc. + * Copyright 2013,2014,2019 Free Software Foundation, Inc. * * This file is part of GNU Radio. * @@ -24,7 +24,7 @@ #define INCLUDED_ZEROMQ_PULL_MSG_SOURCE_IMPL_H #include <gnuradio/zeromq/pull_msg_source.h> -#include <zmq.hpp> +#include "zmq_common_impl.h" namespace gr { namespace zeromq { |