diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-07 14:53:04 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-03 23:11:34 -0400 |
commit | c2540871fb1260388771feb244a6eceafd705443 (patch) | |
tree | 9d474cf7fa9704d2e499ff485ef00aa33367f428 /src/sys-socket.h | |
parent | b86d4117be115bf1aa556130a823bdcd233bd726 (diff) | |
download | lighttpd-git-c2540871fb1260388771feb244a6eceafd705443.tar.gz |
[build] _WIN32 mingw build
use -lws2_32 instead of -lwsock32
Diffstat (limited to 'src/sys-socket.h')
-rw-r--r-- | src/sys-socket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys-socket.h b/src/sys-socket.h index 1a4b9e32..f0c74746 100644 --- a/src/sys-socket.h +++ b/src/sys-socket.h @@ -4,6 +4,9 @@ #ifdef _WIN32 +#ifdef _MSC_VER +#pragma comment(lib, "ws2_32.lib") +#endif #include <winsock2.h> /* https://docs.microsoft.com/en-us/windows/win32/winsock/sockaddr-2 */ #include <ws2tcpip.h> |