openvpn-fix-tmpdir.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From b70d99fb617350b252c8bde2f1f2d81d3f5b7955 Mon Sep 17 00:00:00 2001
  2. From: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. Date: Wed, 27 Apr 2011 18:43:50 +0200
  4. Subject: [PATCH] Fix compile issues when using --enable-small and --disable-ssl/--disable-crypto
  5. The tmp_dir string is required in the options struct regardless of options
  6. so spin it out of #if conditionals.
  7. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  8. Acked-by: David Sommerseth <dazo@users.sourceforge.net>
  9. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
  10. ---
  11. options.h | 3 ++-
  12. 1 files changed, 2 insertions(+), 1 deletions(-)
  13. diff --git a/options.h b/options.h
  14. index a9c6a94..8a51502 100644
  15. --- a/options.h
  16. +++ b/options.h
  17. @@ -369,6 +369,8 @@ struct options
  18. struct plugin_option_list *plugin_list;
  19. #endif
  20. + const char *tmp_dir;
  21. +
  22. #if P2MP
  23. #if P2MP_SERVER
  24. @@ -409,7 +411,6 @@ struct options
  25. const char *client_connect_script;
  26. const char *client_disconnect_script;
  27. const char *learn_address_script;
  28. - const char *tmp_dir;
  29. const char *client_config_dir;
  30. bool ccd_exclusive;
  31. bool disable;
  32. --
  33. 1.7.0.1