fix compilation under mingw64 (#325)

This commit is contained in:
ouwou 2021-11-16 23:22:51 +00:00 committed by GitHub
parent 97aa1f956a
commit e66437b560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,8 @@
*/
#include "IXNetSystem.h"
#include <cstdint>
#include <cstdio>
namespace ix
{

View File

@ -34,8 +34,8 @@
// Define our own poll on Windows, as a wrapper on top of select
typedef unsigned long int nfds_t;
// mingw does not know about poll so mock it
#if defined(__GNUC__)
// pollfd is not defined by some versions of mingw64 since _WIN32_WINNT is too low
#if _WIN32_WINNT < 0x0600
struct pollfd
{
int fd; /* file descriptor */