From 07c3f0bf3ddc67cd183439a472ade96100965b6e Mon Sep 17 00:00:00 2001 From: leitner Date: Tue, 27 Apr 2021 17:38:54 +0000 Subject: [PATCH] some crude attempt to fix mingw cross build --- io.h | 4 ++++ io_internal.h | 1 + 2 files changed, 5 insertions(+) diff --git a/io.h b/io.h index 1f52a21..4736a32 100644 --- a/io.h +++ b/io.h @@ -2,6 +2,10 @@ #ifndef IO_H #define IO_H +#ifdef __MINGW32__ +#include_next +#endif + /* http://cr.yp.to/lib/io.html */ #include diff --git a/io_internal.h b/io_internal.h index 9b6c0d6..02341e5 100644 --- a/io_internal.h +++ b/io_internal.h @@ -6,6 +6,7 @@ #include "libowfat/array.h" #include "libowfat/iarray.h" #ifdef __MINGW32__ +#include #include "socket.h" my_extern HANDLE io_comport; #else