Skip to contentSkip to conversation

Fix poll.h logic in syshead.h

PATCH In review Arne Schwabe 2 participants 2 messages May 24, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix poll.h logic in syshead.h

Commit 62063162 change the include from sys/poll.h to just poll.h but forgot to also change all occurrences of HAVE_SYS_POLL_H to HAVE_POLL_H.

---
 src/openvpn/syshead.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/syshead.h +1 -1
index 2b4c49ff..899aa59e 100644
@@ -600,7 +600,7 @@ socket_defined(const socket_descriptor_t sd)
 /*
  * Is poll available on this platform?
  */
-#if defined(HAVE_POLL) && defined(HAVE_SYS_POLL_H)
+#if defined(HAVE_POLL) && defined(HAVE_POLL_H)
 #define POLL 1
 #else
 #define POLL 0
Signature · 1 line
2.21.0
Acked-by on v1 1/1
#1 lore raw

"Obvious oversight". More configure silliness might be fixable, but this is like easy and direct :-) - smoke tested on FreeBSD.

Your patch has been applied to the master branch.

commit e077726c768c24809531a55332ae1e273f8e41c2

Author: Arne Schwabe
Date:   Fri May 24 11:02:36 2019 +0200
     Fix poll.h logic in syshead.h

     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg18475.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering