[Openvpn-devel] Fix poll.h logic in syshead.h

Message ID 20190524090236.10760-1-arne@rfc2549.org
State Accepted
Headers show
Series [Openvpn-devel] Fix poll.h logic in syshead.h | expand

Commit Message

Arne Schwabe May 23, 2019, 11:02 p.m. UTC
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(-)

Comments

Gert Doering May 24, 2019, 2:03 a.m. UTC | #1
Acked-by: Gert Doering <gert@greenie.muc.de>

"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 <gert@greenie.muc.de>
     Message-Id: <20190524090236.10760-1-arne@rfc2549.org>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18475.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering

Patch

diff --git a/src/openvpn/syshead.h b/src/openvpn/syshead.h
index 2b4c49ff..899aa59e 100644
--- a/src/openvpn/syshead.h
+++ b/src/openvpn/syshead.h
@@ -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