Skip to content

Commit

Permalink
Remove wrong poll.h include
Browse files Browse the repository at this point in the history
musl reports:

warning redirecting incorrect #include <sys/poll.h> to <poll.h>

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20190403225740.8285-1-rosenp@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18336.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
neheb authored and cron2 committed Apr 11, 2019
1 parent aa830e1 commit 6206316
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -436,7 +436,7 @@ AC_CHECK_HEADERS([ \
unistd.h signal.h libgen.h stropts.h \
syslog.h pwd.h grp.h \
sys/sockio.h sys/uio.h linux/sockios.h \
linux/types.h sys/poll.h sys/epoll.h err.h \
linux/types.h poll.h sys/epoll.h err.h \
])

SOCKET_INCLUDES="
4 changes: 2 additions & 2 deletions src/openvpn/syshead.h
Original file line number Diff line number Diff line change
@@ -179,8 +179,8 @@
#include <resolv.h>
#endif

#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#ifdef HAVE_POLL_H
#include <poll.h>
#endif

#ifdef HAVE_SYS_EPOLL_H

0 comments on commit 6206316

Please sign in to comment.