some crude attempt to fix mingw cross build

This commit is contained in:
leitner 2021-04-27 17:38:54 +00:00
parent 853242b078
commit 07c3f0bf3d
2 changed files with 5 additions and 0 deletions

4
io.h
View File

@ -2,6 +2,10 @@
#ifndef IO_H
#define IO_H
#ifdef __MINGW32__
#include_next <io.h>
#endif
/* http://cr.yp.to/lib/io.html */
#include <libowfat/uint64.h>

View File

@ -6,6 +6,7 @@
#include "libowfat/array.h"
#include "libowfat/iarray.h"
#ifdef __MINGW32__
#include <winsock2.h>
#include "socket.h"
my_extern HANDLE io_comport;
#else