Skip to content

Commit

Permalink
Fix possible redeclaration of pollfd / poll
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz authored and tguillem committed Aug 13, 2019
1 parent 1650b3d commit 4c721e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compat/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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

Expand Down

0 comments on commit 4c721e8

Please sign in to comment.