From b657881a92cbe0a9148aefa90ff08b61ed5b0b06 Mon Sep 17 00:00:00 2001 From: Logan oos Even <46396513+Logan007@users.noreply.github.com> Date: Fri, 24 Dec 2021 10:32:22 +0100 Subject: [PATCH] differentiated miniupnp includes (#912) --- include/n2n_port_mapping.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/n2n_port_mapping.h b/include/n2n_port_mapping.h index cf5cacb..d87c92c 100644 --- a/include/n2n_port_mapping.h +++ b/include/n2n_port_mapping.h @@ -4,9 +4,17 @@ #include #ifdef HAVE_MINIUPNP +#ifdef CMAKE_BUILD +// CMAKE uses static linked lib as submodule which requires different includes than +// the dynamically linked, intalled library in case of plain make +#include +#include +#include +#else #include #include #include +#endif // CMAKE_BUILD #endif // HAVE_MINIUPNP