kumquat-buildroot/package/openvpn/openvpn-2.1.3-fix-build-with-disable-crypto.patch
Peter Korsgaard abbd7223b2 openvpn: bump version, fix build with --disable-crypto
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-09-23 22:09:25 +02:00

31 lines
886 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[PATCH] 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
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
options.c | 1 +
1 file changed, 1 insertion(+)
Index: openvpn-2.1.3/options.c
===================================================================
--- openvpn-2.1.3.orig/options.c
+++ 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"