openvpn-fix-build-with-disable-crypto.patch 886 B

123456789101112131415161718192021222324252627282930
  1. [PATCH] fix build with --disable-crypto
  2. options.c is missing the definition for struct context when built with
  3. --disable-crypto, as it then doesn't get pulled in through push.h,
  4. leading to build errors like:
  5. options.c: In function ‘parse_http_proxy_fallback’:
  6. options.c:1474: error: dereferencing pointer to incomplete type
  7. options.c:1477: error: dereferencing pointer to incomplete type
  8. options.c:1478: error: dereferencing pointer to incomplete type
  9. Fix it by including forward.h
  10. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  11. ---
  12. options.c | 1 +
  13. 1 file changed, 1 insertion(+)
  14. Index: openvpn-2.1.3/options.c
  15. ===================================================================
  16. --- openvpn-2.1.3.orig/options.c
  17. +++ openvpn-2.1.3/options.c
  18. @@ -29,6 +29,7 @@
  19. #include "syshead.h"
  20. +#include "forward.h"
  21. #include "buffer.h"
  22. #include "error.h"
  23. #include "common.h"