mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-03 13:28:44 +00:00
Handle #1529: add automatic linkage against ws2_32.lib on _WIN32 targets
This commit is contained in:
1 parent
944704a12d
commit
20fc8f0279
3 files changed
+3
-1
No files matched your search
@@ -13,6 +13,7 @@
|
||||
#define MG_SOCK_ERRNO WSAGetLastError()
|
||||
#ifndef SO_EXCLUSIVEADDRUSE
|
||||
#define SO_EXCLUSIVEADDRUSE ((int) (~SO_REUSEADDR))
|
||||
#pragma comment(lib, "ws2_32.lib")
|
||||
#endif
|
||||
#elif MG_ARCH == MG_ARCH_FREERTOS_TCP
|
||||
#define MG_SOCK_ERRNO errno
|
||||
|
||||
Reference in new issue
Block a user