When I use the header file for a project that cross compiles on Ubuntu 2025.10 for Windows (WIN32) I run into the following compiler error:
.../deps/mdns/mdns.h:24:10: fatal error: Winsock2.h: No such file or directory
24 | #include <Winsock2.h>
| ^~~~~~~~~~~~
compilation terminated.
Since Linux is using a case sensitive filesystem the solution is simply to replace:
#ifdef _WIN32
#include <Winsock2.h>
#include <Ws2tcpip.h>
with
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
Please note that ws2tcpip.h also needs to be fixed.
Can someone please fix this in main and add a new tag like v1.4.4? That would be great! THX!
When I use the header file for a project that cross compiles on Ubuntu 2025.10 for Windows (WIN32) I run into the following compiler error:
Since Linux is using a case sensitive filesystem the solution is simply to replace:
with
Please note that ws2tcpip.h also needs to be fixed.
Can someone please fix this in main and add a new tag like v1.4.4? That would be great! THX!