mirror of
https://github.com/strophe/libstrophe.git
synced 2026-07-31 17:36:22 +00:00
conn: Fix cross compilation with mingw
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.
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#ifndef _MSC_VER
|
#if !defined(_MSC_VER) && !defined(_WIN32)
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user