aboutsummaryrefslogtreecommitdiff
path: root/src/tools/perf/perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/perf/perf.c')
-rw-r--r--src/tools/perf/perf.c4
1 files changed, 4 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