Browse code

Remove wrong poll.h include

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>

Rosen Penev authored on 2019/04/04 07:57:40
Showing 2 changed files
... ...
@@ -436,7 +436,7 @@ AC_CHECK_HEADERS([ \
436 436
 	unistd.h signal.h libgen.h stropts.h \
437 437
 	syslog.h pwd.h grp.h \
438 438
 	sys/sockio.h sys/uio.h linux/sockios.h \
439
-	linux/types.h sys/poll.h sys/epoll.h err.h \
439
+	linux/types.h poll.h sys/epoll.h err.h \
440 440
 ])
441 441
 
442 442
 SOCKET_INCLUDES="
... ...
@@ -179,8 +179,8 @@
179 179
 #include <resolv.h>
180 180
 #endif
181 181
 
182
-#ifdef HAVE_SYS_POLL_H
183
-#include <sys/poll.h>
182
+#ifdef HAVE_POLL_H
183
+#include <poll.h>
184 184
 #endif
185 185
 
186 186
 #ifdef HAVE_SYS_EPOLL_H