vcpkg/ports/poco/fix_foundation_link.patch

25 lines
661 B
Diff
Raw Normal View History

diff --git a/Foundation/src/Environment_WIN32.cpp b/Foundation/src/Environment_WIN32.cpp
index 62845fa..edcf6fe 100644
--- a/Foundation/src/Environment_WIN32.cpp
+++ b/Foundation/src/Environment_WIN32.cpp
@@ -22,6 +22,7 @@
#include <ws2ipdef.h>
#include <iphlpapi.h>
+#pragma comment(lib, "IPHLPAPI.lib")
namespace Poco {
diff --git a/Foundation/src/Environment_WINCE.cpp b/Foundation/src/Environment_WINCE.cpp
index afa59b6..c43767b 100644
--- a/Foundation/src/Environment_WINCE.cpp
+++ b/Foundation/src/Environment_WINCE.cpp
@@ -23,6 +23,7 @@
#include <windows.h>
#include <iphlpapi.h>
+#pragma comment(lib, "IPHLPAPI.lib")
namespace Poco {