summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2009-09-03 15:10:47 +0200
committerPeter Palfrader <peter@palfrader.org>2009-09-03 15:10:47 +0200
commit2bf59689a223fa026a2d2919f455ce100fe43480 (patch)
tree180932fa558b2fab3d984b0d64210bf8d1207179 /debian/patches
parent7dba7dcf718b8e4776c0003c90a8eb2e36428e96 (diff)
downloadtor-2bf59689a223fa026a2d2919f455ce100fe43480.tar.gz
tor-2bf59689a223fa026a2d2919f455ce100fe43480.zip
Forward port patches/06_add_compile_time_defaults.dpatch
Diffstat (limited to 'debian/patches')
-rwxr-xr-xdebian/patches/06_add_compile_time_defaults.dpatch21
1 files changed, 11 insertions, 10 deletions
diff --git a/debian/patches/06_add_compile_time_defaults.dpatch b/debian/patches/06_add_compile_time_defaults.dpatch
index a2472d1db8..e64d4618af 100755
--- a/debian/patches/06_add_compile_time_defaults.dpatch
+++ b/debian/patches/06_add_compile_time_defaults.dpatch
@@ -23,9 +23,9 @@ esac
exit 0
@DPATCH@
-diff -urNad tor-trunk~/src/or/config.c tor-trunk/src/or/config.c
---- tor-trunk~/src/or/config.c 2009-01-18 01:47:33.000000000 +0100
-+++ tor-trunk/src/or/config.c 2009-02-05 00:25:17.614844812 +0100
+diff -urNad tor~/src/or/config.c tor/src/or/config.c
+--- tor~/src/or/config.c 2009-09-03 15:05:41.000000000 +0200
++++ tor/src/or/config.c 2009-09-03 15:09:37.662104166 +0200
@@ -12,6 +12,7 @@
#define CONFIG_PRIVATE
@@ -34,16 +34,17 @@ diff -urNad tor-trunk~/src/or/config.c tor-trunk/src/or/config.c
#ifdef MS_WINDOWS
#include <shlobj.h>
#endif
-@@ -711,6 +712,8 @@
- #if defined(HAVE_EVENT_GET_VERSION) && defined(HAVE_EVENT_GET_METHOD)
- static void check_libevent_version(const char *m, int server);
- #endif
+@@ -717,6 +718,9 @@
+ static void init_libevent(void);
+ static int opt_streq(const char *s1, const char *s2);
+
+static int debian_running_as_debiantor();
+static int debian_config_fix_defaults();
-
++
/** Magic value for or_options_t. */
#define OR_OPTIONS_MAGIC 9090909
-@@ -3917,6 +3920,9 @@
+
+@@ -4086,6 +4090,9 @@
char *command_arg = NULL;
char *errmsg=NULL;
@@ -53,7 +54,7 @@ diff -urNad tor-trunk~/src/or/config.c tor-trunk/src/or/config.c
if (argv) { /* first time we're called. save command line args */
backup_argv = argv;
backup_argc = argc;
-@@ -5307,3 +5313,62 @@
+@@ -5304,3 +5311,62 @@
return 0;
}