Skip to content

Conversation

@pasis
Copy link
Member

@pasis pasis commented Dec 20, 2025

Mingw doesn't find netinet/in.h which is not supposed to be used for a windows build. This header is conditionally compiled when _MSC_VER is not defined, however, mingw defines only _WIN32 and not the _MSC_VER.

Add also _WIN32 to the condition, so mingw ignores the header and relies on winsock2.h from common.h->sock.h.

Fixes #265.

Mingw doesn't find netinet/in.h which is not supposed to be used for a
windows build. This header is conditionally compiled when _MSC_VER is
not defined, however, mingw defines only _WIN32 and not the _MSC_VER.

Add also _WIN32 to the condition, so mingw ignores the header and relies
on winsock2.h from common.h->sock.h.

Fixes #265.
@sjaeckel sjaeckel merged commit 0dc045a into master Dec 20, 2025
39 checks passed
@sjaeckel sjaeckel deleted the mingw-fix branch December 20, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Any way to cross compile to windows?

3 participants