2018-07-08 17:39:26 +00:00
|
|
|
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt
|
2019-06-17 08:44:35 +00:00
|
|
|
index 7553f87e..8e865c6c 100644
|
2018-07-08 17:39:26 +00:00
|
|
|
--- a/external/CMakeLists.txt
|
|
|
|
+++ b/external/CMakeLists.txt
|
2019-06-17 08:44:35 +00:00
|
|
|
@@ -37,19 +37,7 @@
|
2018-07-08 17:39:26 +00:00
|
|
|
|
2019-06-17 08:44:35 +00:00
|
|
|
find_package(Miniupnpc REQUIRED)
|
2018-07-08 17:39:26 +00:00
|
|
|
|
|
|
|
-message(STATUS "Using in-tree miniupnpc")
|
|
|
|
-add_subdirectory(miniupnp/miniupnpc)
|
|
|
|
-set_property(TARGET libminiupnpc-static PROPERTY FOLDER "external")
|
|
|
|
-if(MSVC)
|
|
|
|
- set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267")
|
|
|
|
-elseif(NOT MSVC)
|
|
|
|
- set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-undef -Wno-unused-result -Wno-unused-value")
|
|
|
|
-endif()
|
2019-06-17 08:44:35 +00:00
|
|
|
-if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
|
|
|
|
- set_property(TARGET libminiupnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -D_NETBSD_SOURCE")
|
|
|
|
-endif()
|
|
|
|
-
|
2018-07-08 17:39:26 +00:00
|
|
|
-set(UPNP_LIBRARIES "libminiupnpc-static" PARENT_SCOPE)
|
2019-06-17 08:44:35 +00:00
|
|
|
+set(UPNP_LIBRARIES "miniupnpc" PARENT_SCOPE)
|
2018-07-08 17:39:26 +00:00
|
|
|
|
|
|
|
find_package(Unbound)
|
|
|
|
|
|
|
|
diff --git a/src/p2p/net_node.inl b/src/p2p/net_node.inl
|
2019-06-17 08:44:35 +00:00
|
|
|
index 74924e4f..3554dd0d 100644
|
2018-07-08 17:39:26 +00:00
|
|
|
--- a/src/p2p/net_node.inl
|
|
|
|
+++ b/src/p2p/net_node.inl
|
2019-06-17 08:44:35 +00:00
|
|
|
@@ -49,9 +49,9 @@
|
2018-07-08 17:39:26 +00:00
|
|
|
#include "storages/levin_abstract_invoke2.h"
|
|
|
|
#include "cryptonote_core/cryptonote_core.h"
|
|
|
|
|
|
|
|
-#include <miniupnp/miniupnpc/miniupnpc.h>
|
|
|
|
-#include <miniupnp/miniupnpc/upnpcommands.h>
|
|
|
|
-#include <miniupnp/miniupnpc/upnperrors.h>
|
2019-06-17 08:44:35 +00:00
|
|
|
+#include <miniupnpc/miniupnpc.h>
|
|
|
|
+#include <miniupnpc/upnpcommands.h>
|
|
|
|
+#include <miniupnpc/upnperrors.h>
|
2018-07-08 17:39:26 +00:00
|
|
|
|
|
|
|
#undef MONERO_DEFAULT_LOG_CATEGORY
|
|
|
|
#define MONERO_DEFAULT_LOG_CATEGORY "net.p2p"
|