aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/perf/perf.c4
-rw-r--r--src/tools/perf/pubdrop.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/perf/perf.c b/src/tools/perf/perf.c
index accac621..46d91cd8 100644
--- a/src/tools/perf/perf.c
+++ b/src/tools/perf/perf.c
@@ -45,6 +45,10 @@ static open_func open_client = no_open;
#define nng_pair0_open no_open
#endif
+#if !defined(NNG_HAVE_PAIR0) && !defined(NNG_HAVE_PAIR1)
+#define nng_pair_open no_open
+#endif
+
#if defined(NNG_HAVE_REQ0)
#include <nng/protocol/reqrep0/req.h>
#else
diff --git a/src/tools/perf/pubdrop.c b/src/tools/perf/pubdrop.c
index 41ac5ba0..f7e1dbfd 100644
--- a/src/tools/perf/pubdrop.c
+++ b/src/tools/perf/pubdrop.c
@@ -27,6 +27,8 @@
#else
+#define NNG_OPT_SUB_SUBSCRIBE "sub:subscribe"
+
static void die(const char *, ...);
static int