Browse Source

differentiated miniupnp includes (#912)

pull/914/head
Logan oos Even 3 years ago
committed by GitHub
parent
commit
b657881a92
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      include/n2n_port_mapping.h

8
include/n2n_port_mapping.h

@ -4,9 +4,17 @@
#include <stdint.h> #include <stdint.h>
#ifdef HAVE_MINIUPNP #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 <miniupnpc.h>
#include <upnpcommands.h>
#include <upnperrors.h>
#else
#include <miniupnpc/miniupnpc.h> #include <miniupnpc/miniupnpc.h>
#include <miniupnpc/upnpcommands.h> #include <miniupnpc/upnpcommands.h>
#include <miniupnpc/upnperrors.h> #include <miniupnpc/upnperrors.h>
#endif // CMAKE_BUILD
#endif // HAVE_MINIUPNP #endif // HAVE_MINIUPNP

Loading…
Cancel
Save