summaryrefslogtreecommitdiff
path: root/package/openvpn/openvpn-fix-build-with-disable-crypto.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2011-04-27 15:05:10 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2011-04-27 20:55:34 +0200
commitf1d88a96ca865f828d1efadd8de0898819453373 (patch)
treecc2153fbb1e474141d1c4a5d94022fe16d060119 /package/openvpn/openvpn-fix-build-with-disable-crypto.patch
parent2c200d5b369378876f85afc222ba7f14b120bbc6 (diff)
openvpn: bump to version 2.2.0
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/openvpn/openvpn-fix-build-with-disable-crypto.patch')
-rw-r--r--package/openvpn/openvpn-fix-build-with-disable-crypto.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/openvpn/openvpn-fix-build-with-disable-crypto.patch b/package/openvpn/openvpn-fix-build-with-disable-crypto.patch
new file mode 100644
index 000000000..546655875
--- /dev/null
+++ b/package/openvpn/openvpn-fix-build-with-disable-crypto.patch
@@ -0,0 +1,30 @@
+[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"