fix compilation under mingw64 (#325)
This commit is contained in:
parent
97aa1f956a
commit
e66437b560
@ -5,6 +5,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "IXNetSystem.h"
|
#include "IXNetSystem.h"
|
||||||
|
#include <cstdint>
|
||||||
|
#include <cstdio>
|
||||||
|
|
||||||
namespace ix
|
namespace ix
|
||||||
{
|
{
|
||||||
|
@ -34,8 +34,8 @@
|
|||||||
// Define our own poll on Windows, as a wrapper on top of select
|
// Define our own poll on Windows, as a wrapper on top of select
|
||||||
typedef unsigned long int nfds_t;
|
typedef unsigned long int nfds_t;
|
||||||
|
|
||||||
// mingw does not know about poll so mock it
|
// pollfd is not defined by some versions of mingw64 since _WIN32_WINNT is too low
|
||||||
#if defined(__GNUC__)
|
#if _WIN32_WINNT < 0x0600
|
||||||
struct pollfd
|
struct pollfd
|
||||||
{
|
{
|
||||||
int fd; /* file descriptor */
|
int fd; /* file descriptor */
|
||||||
|
Loading…
Reference in New Issue
Block a user