Skip to contentSkip to conversation

fix build with --disable-crypto

PATCH New Peter Korsgaard 1 participant 1 message Sep 23, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix build with --disable-crypto

options.c is missing the definition for struct context when built with --disable-crypto, as it then doesn't get pulled in through push.h, leading to build errors like:

options.c: In function ‘parse_http_proxy_fallback’:
options.c:1474: error: dereferencing pointer to incomplete type options.c:1477: error: dereferencing pointer to incomplete type options.c:1478: error: dereferencing pointer to incomplete type

Fix it by including forward.h

---
 options.c |    1 +
 1 file changed, 1 insertion(+)
options.c +1 -0
Index: openvpn-2.1.3/options.c
===================================================================
@@ -29,6 +29,7 @@
 
 #include "syshead.h"
 
+#include "forward.h"
 #include "buffer.h"
 #include "error.h"
 #include "common.h"
Signature · 1 line
Bye, Peter Korsgaard