From 1ab464628bb4518f5868df11d033368caaa0a106 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Fri, 26 Nov 2021 12:54:58 -0500 Subject: fix building with PAIR and PUBSUB disabled (#1530) When building with PAIR and PUBSUB protocols disabled, the perf tools fail to compile. This makes some minor tweaks to correct that --- src/tools/perf/perf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tools/perf/perf.c') 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 #else -- cgit v1.2.3-70-g09d2