aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-31 08:28:29 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-31 08:28:29 +0100
commit97e116d1747a0cca97e6e5c8871b250374ac5fc2 (patch)
tree9cd6062a1d3709ef83734f297c2b14bedaa7f461 /src
parentfa72929ad024290b7bb0b9184f9826a9de7bc052 (diff)
parent6c3bdf2987b97687a77d6555b03a61fa04277a6e (diff)
downloaddabmux-97e116d1747a0cca97e6e5c8871b250374ac5fc2.tar.gz
dabmux-97e116d1747a0cca97e6e5c8871b250374ac5fc2.tar.bz2
dabmux-97e116d1747a0cca97e6e5c8871b250374ac5fc2.zip
Merge branch 'master' into next
Conflicts: src/dabInputZmq.cpp src/dabInputZmq.h
Diffstat (limited to 'src')
-rw-r--r--src/dabInputZmq.cpp8
-rw-r--r--src/dabInputZmq.h5
-rw-r--r--src/dabOutput/dabOutputZMQ.cpp4
3 files changed, 13 insertions, 4 deletions
diff --git a/src/dabInputZmq.cpp b/src/dabInputZmq.cpp
index 10c0f98..c84e81c 100644
--- a/src/dabInputZmq.cpp
+++ b/src/dabInputZmq.cpp
@@ -36,6 +36,12 @@
#include "dabInputZmq.h"
#include "StatsServer.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#ifdef HAVE_INPUT_ZEROMQ
+
#include <stdio.h>
#include <zmq.hpp>
#include <list>
@@ -49,7 +55,7 @@
# define bzero(s, n) memset(s, 0, n)
#endif
-#ifdef HAVE_INPUT_ZEROMQ
+extern StatsServer* global_stats;
int DabInputZmq::open(const std::string inputUri)
{
diff --git a/src/dabInputZmq.h b/src/dabInputZmq.h
index 72bd348..bb37a94 100644
--- a/src/dabInputZmq.h
+++ b/src/dabInputZmq.h
@@ -37,11 +37,12 @@
#ifndef DAB_INPUT_ZMQ_H
#define DAB_INPUT_ZMQ_H
-#ifdef HAVE_INPUT_ZEROMQ
-
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
+
+#ifdef HAVE_INPUT_ZEROMQ
+
#include <zmq.hpp>
#include <list>
#include <string>
diff --git a/src/dabOutput/dabOutputZMQ.cpp b/src/dabOutput/dabOutputZMQ.cpp
index 271cfa1..24fa6dc 100644
--- a/src/dabOutput/dabOutputZMQ.cpp
+++ b/src/dabOutput/dabOutputZMQ.cpp
@@ -32,7 +32,9 @@
You should have received a copy of the GNU General Public License
along with CRC-DabMux. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "config.h"
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#if defined(HAVE_OUTPUT_ZEROMQ)