From 4c721e8972d6539c85b1d8df6b74c77fc417949f Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Mon, 12 Aug 2019 20:50:00 +0700 Subject: [PATCH] Fix possible redeclaration of pollfd / poll --- compat/compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/compat.h b/compat/compat.h index dd78134..48a9a7e 100644 --- a/compat/compat.h +++ b/compat/compat.h @@ -108,7 +108,7 @@ typedef void* multicast_if; #endif // _WIN32 -#ifndef HAVE_STRUCT_POLLFD +#if !defined(HAVE_STRUCT_POLLFD) && !defined(_SYS_POLL_H) enum { POLLERR=0x1, @@ -129,7 +129,7 @@ struct pollfd }; #endif -#ifndef HAVE_POLL +#if !defined(HAVE_POLL) && !defined(_SYS_POLL_H) int poll(struct pollfd *fds, unsigned nfds, int timeout); #endif