Skip to contentSkip to conversation

Make openvpn-plugin.h self-contained again.

PATCH In review Matthias Andree 2 participants 2 messages May 15, 2017 – May 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make openvpn-plugin.h self-contained again.

2.4.2 introduced a declaration that references size_t, so use the C99 way of declaring it, and add #include <stddef.h>.

Note this may break on non-C99-compliant versions of MS Visual Studio.

---
 include/openvpn-plugin.h.in | 1 +
 1 file changed, 1 insertion(+)
include/openvpn-plugin.h.in +1 -0
index 5e6f874..aa71b49 100644
@@ -44,6 +44,7 @@ typedef X509 openvpn_x509_cert_t;
 #endif
 
 #include <stdarg.h>
+#include <stddef.h>
 
 #ifdef __cplusplus
 extern "C" {
Signature · 1 line
2.7.4
#1 lore raw

ACK, thanks. Tested standalone compilation before/after.

Your patch has been applied to the master and release/2.4 branch.

commit cf9deedf425c945906d5cc482fb962796d21f123 (master) commit 37b3409681ee04b7cb7c246a7fd701a883e582e2 (release/2.4)

Author: Matthias Andree
Date:   Mon May 15 23:48:45 2017 +0200
     Make openvpn-plugin.h self-contained again.

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

--
kind regards,

Gert Doering