aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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