diff --git a/NetSSL_Win/include/Poco/Net/AutoSecBufferDesc.h b/NetSSL_Win/include/Poco/Net/AutoSecBufferDesc.h index a6aea8935..f9f6b330d 100644 --- a/NetSSL_Win/include/Poco/Net/AutoSecBufferDesc.h +++ b/NetSSL_Win/include/Poco/Net/AutoSecBufferDesc.h @@ -19,12 +19,14 @@ #include "Poco/Net/NetSSL.h" +#if defined(POCO_OS_FAMILY_WINDOWS) #include #include #ifndef SECURITY_WIN32 #define SECURITY_WIN32 -#endif #include +#endif +#endif namespace Poco { diff --git a/NetSSL_Win/include/Poco/Net/Context.h b/NetSSL_Win/include/Poco/Net/Context.h index 090a0cf7c..7d2d190bd 100644 --- a/NetSSL_Win/include/Poco/Net/Context.h +++ b/NetSSL_Win/include/Poco/Net/Context.h @@ -24,6 +24,7 @@ #include "Poco/AutoPtr.h" #include "Poco/Mutex.h" #include +#if defined(POCO_OS_FAMILY_WINDOWS) #include #include #include @@ -32,6 +33,7 @@ #endif #include #include +#endif namespace Poco { diff --git a/NetSSL_Win/include/Poco/Net/SSLManager.h b/NetSSL_Win/include/Poco/Net/SSLManager.h index e2e063ff7..db5d9b0a7 100644 --- a/NetSSL_Win/include/Poco/Net/SSLManager.h +++ b/NetSSL_Win/include/Poco/Net/SSLManager.h @@ -27,6 +27,7 @@ #include "Poco/Util/AbstractConfiguration.h" #include "Poco/BasicEvent.h" #include "Poco/SharedPtr.h" +#if defined(POCO_OS_FAMILY_WINDOWS) #include #include #ifndef SECURITY_WIN32 @@ -34,6 +35,7 @@ #endif #include #include +#endif namespace Poco { diff --git a/NetSSL_Win/include/Poco/Net/X509Certificate.h b/NetSSL_Win/include/Poco/Net/X509Certificate.h index 99fffe805..42e317889 100644 --- a/NetSSL_Win/include/Poco/Net/X509Certificate.h +++ b/NetSSL_Win/include/Poco/Net/X509Certificate.h @@ -22,7 +22,9 @@ #include "Poco/DateTime.h" #include #include +#if defined(POCO_OS_FAMILY_WINDOWS) #include +#endif namespace Poco {