Only include sys/poll.h if we don't have poll.h.

Prevents warnings on MUSL based systems such as Alpine.
This commit is contained in:
Darren Tucker 2022-02-22 12:25:52 +11:00
parent 7c0d4ce911
commit 5a102e9cb2
1 changed files with 1 additions and 2 deletions

View File

@ -33,8 +33,7 @@
#include <sys/types.h>
#ifdef HAVE_POLL_H
# include <poll.h>
#endif
#ifdef HAVE_SYS_POLL_H
#elif HAVE_SYS_POLL_H
# include <sys/poll.h>
#endif