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 <[email protected]>
Acked-by: Gert Doering <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg18336.html
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
neheb authored and cron2 committed Apr 11, 2019
1 parent aa830e1 commit 6206316
Show file tree
Hide file tree
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
Expand Up @@ -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="
Expand Down
4 changes: 2 additions & 2 deletions src/openvpn/syshead.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6206316

Please sign in to comment.