]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Remove wrong poll.h include
authorRosen Penev <rosenp@gmail.com>
Wed, 3 Apr 2019 22:57:40 +0000 (15:57 -0700)
committerGert Doering <gert@greenie.muc.de>
Thu, 11 Apr 2019 19:10:54 +0000 (21:10 +0200)
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>
configure.ac
src/openvpn/syshead.h

index bcc74c32d253537f72ce7794c8d149ac3a186ae2..90fc90462abeb1606e70e83cd26c59d01fdc4ff7 100644 (file)
@@ -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="
index d2a503418808f97ee70239bac430394acfa17800..2b4c49ffa98056c437132635144b8b8507b2953b 100644 (file)
 #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