aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluffypony <ric@spagni.net>2014-09-10 20:01:30 +0200
committerfluffypony <ric@spagni.net>2014-09-10 20:01:30 +0200
commit8d8b47e69f6bd1cfbd8f94c8ffc30b0ad3f19fc0 (patch)
tree063662186142e644d1b48afd213a8e800792da1d /src
parentminiupnpc includes fixed (diff)
downloadmonero-8d8b47e69f6bd1cfbd8f94c8ffc30b0ad3f19fc0.tar.xz
more dynamic miniupnp fixes
Diffstat (limited to 'src')
-rw-r--r--src/p2p/net_node.inl11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
index c2b397419..626e227bc 100644
--- a/src/p2p/net_node.inl
+++ b/src/p2p/net_node.inl
@@ -42,8 +42,15 @@
#include "net/local_ip.h"
#include "crypto/crypto.h"
#include "storages/levin_abstract_invoke2.h"
-#include "miniupnpc.h"
-#include "upnpcommands.h"
+
+// We have to look for miniupnpc headers in different places, dependent on if its compiled or external
+#ifdef UPNP_STATIC
+ #include <miniupnpc/miniupnpc.h>
+ #include <miniupnpc/upnpcommands.h>
+#else
+ #include "miniupnpc.h"
+ #include "upnpcommands.h"
+#endif
#define NET_MAKE_IP(b1,b2,b3,b4) ((LPARAM)(((DWORD)(b1)<<24)+((DWORD)(b2)<<16)+((DWORD)(b3)<<8)+((DWORD)(b4))))