1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

libssh2_priv.h : Fix musl build warning on sys/poll.h (#346)

File : libssh2_priv.h

Notes :
musl prints `redirecting incorrect #include <sys/poll.h> to <poll.h>`
http://git.musl-libc.org/cgit/musl/commit/include/sys/poll.h?id=54446d730cfb17c5f7bcf57f139458678f5066cc

poll is defined by POSIX to be in poll.h:
http://pubs.opengroup.org/onlinepubs/7908799/xsh/poll.html

Credit : Orivej Desh
This commit is contained in:
Orivej Desh
2019-05-08 22:26:31 +00:00
committed by Will Cosgrove
parent 16f2d2bf86
commit 1130615eeb

View File

@@ -66,7 +66,7 @@
would break backwards compatibility. would break backwards compatibility.
*/ */
#ifdef HAVE_POLL #ifdef HAVE_POLL
# include <sys/poll.h> # include <poll.h>
#else #else
# if defined(HAVE_SELECT) && !defined(WIN32) # if defined(HAVE_SELECT) && !defined(WIN32)
# ifdef HAVE_SYS_SELECT_H # ifdef HAVE_SYS_SELECT_H