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:
parent
7c0d4ce911
commit
5a102e9cb2
|
@ -33,8 +33,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef HAVE_POLL_H
|
#ifdef HAVE_POLL_H
|
||||||
# include <poll.h>
|
# include <poll.h>
|
||||||
#endif
|
#elif HAVE_SYS_POLL_H
|
||||||
#ifdef HAVE_SYS_POLL_H
|
|
||||||
# include <sys/poll.h>
|
# include <sys/poll.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue