Re: [PATCH] Fix linking errors when building with MinGW.

2020-05-04 Thread DDoSolitary
Oops, it is patch for a fork of libev. Sorry for sending it to the wrong place. On 2020/5/3 1:41, Marc Lehmann wrote: > On Sat, May 02, 2020 at 05:27:10PM +0800, DDoSolitary > wrote: >> One will get errors like "undefined reference to __imp_htonl" when >> trying

[PATCH] Fix linking errors when building with MinGW.

2020-05-02 Thread DDoSolitary
One will get errors like "undefined reference to __imp_htonl" when trying to build libev with MinGW on Windows. This patch fixes this by linking to ws2_32, which provides winsock functions. --- CMakeLists.txt | 4 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt i