Skip to content

Commit

Permalink
fix(SocketImpl): Windows: use pragma to link mswsock.lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Matej Kenda authored and matejk committed Dec 12, 2023
1 parent 54f0feb commit 12a99dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Net/include/Poco/Net/SocketImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -599,4 +599,8 @@ inline bool SocketImpl::getBlocking() const
} } // namespace Poco::Net


#if defined(POCO_OS_FAMILY_WINDOWS)
#pragma comment(lib, "mswsock.lib")
#endif

#endif // Net_SocketImpl_INCLUDED

0 comments on commit 12a99dc

Please sign in to comment.