From aab0d508dfeeb641e8eef8d13278ea1247c6a6b2 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Fri, 11 Feb 2022 21:23:34 +0000 Subject: [PATCH] Ensure an error is generated when compiling with invalid options --- src/n2n_port_mapping.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/n2n_port_mapping.c b/src/n2n_port_mapping.c index 9c3a07a..2edb41e 100644 --- a/src/n2n_port_mapping.c +++ b/src/n2n_port_mapping.c @@ -505,6 +505,8 @@ void n2n_chg_port_mapping (struct n2n_edge *eee, uint16_t port) { pthread_mutex_unlock(&eee->port_map_parameter->access); } +#else +#error "enabling port mapping requires enabling pthread" #endif