aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-06-08 20:35:28 +0000
committerNick Mathewson <nickm@torproject.org>2005-06-08 20:35:28 +0000
commitc45845204ab5e96490e438fd659b6123b2a2bdc9 (patch)
treeed525ecda840846fbe405fe17035730ee34c9a9c /src
parent44e85544e4dc336c090473ad157e83b5511eb268 (diff)
downloadtor-c45845204ab5e96490e438fd659b6123b2a2bdc9.tar
tor-c45845204ab5e96490e438fd659b6123b2a2bdc9.tar.gz
Fix warning about unused function when compiling with ancient libevent
svn:r4355
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 0bd96d71e..651d8b1ce 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -217,8 +217,9 @@ static uint64_t config_parse_memunit(const char *s, int *ok);
static int config_parse_interval(const char *s, int *ok);
static void print_cvs_version(void);
static int init_libevent(void);
+#if defined(HAVE_EVENT_GET_VERSION) && defined(HAVE_EVENT_GET_METHOD)
static void check_libevent_version(const char *m, const char *v, int server);
-
+#endif
/*
* Functions to read and write the global options pointer.
@@ -2652,7 +2653,7 @@ init_libevent(void)
return 0;
}
-
+#if defined(HAVE_EVENT_GET_VERSION) && defined(HAVE_EVENT_GET_METHOD)
/**
* Compare the given libevent method and version to a list of versions
* which are known not to work. Warn the user as appropriate.
@@ -2697,6 +2698,7 @@ check_libevent_version(const char *m, const char *v, int server)
}
}
+#endif
static void
print_cvs_version(void)