summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-02-28 16:23:26 -0800
committerGarrett D'Amore <garrett@damore.org>2018-02-28 16:23:26 -0800
commit04e5a756ba25f79036aa5e03e7412ed5e5539a12 (patch)
treed33d3cf0f48de6103f8ee96d5e7fc1afba0071a5 /tests
parent4f2b13b588e4a3dd611aae525e59fa0b46fba263 (diff)
downloadnng-04e5a756ba25f79036aa5e03e7412ed5e5539a12.tar.gz
nng-04e5a756ba25f79036aa5e03e7412ed5e5539a12.tar.bz2
nng-04e5a756ba25f79036aa5e03e7412ed5e5539a12.zip
fixes #250 nngcat may not build if protocols are missing
Diffstat (limited to 'tests')
-rw-r--r--tests/multistress.c2
-rw-r--r--tests/stubs.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/multistress.c b/tests/multistress.c
index 556718fa..0a98d5fc 100644
--- a/tests/multistress.c
+++ b/tests/multistress.c
@@ -31,6 +31,8 @@
#include <string.h>
#include <time.h>
+#include "stubs.h"
+
#ifdef NDEBUG
#define dprintf(...)
#else
diff --git a/tests/stubs.h b/tests/stubs.h
index 99f92f7d..da3a6d5f 100644
--- a/tests/stubs.h
+++ b/tests/stubs.h
@@ -94,4 +94,8 @@ nosocket(nng_socket *s)
#define nng_respondent0_open nosocket
#endif
+#ifndef NNG_HAVE_BUS0
+#define nng_bus0_open nosocket
+#endif
+
#endif // STUBS_H