aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-09-07 19:00:51 +0000
committerNick Mathewson <nickm@torproject.org>2006-09-07 19:00:51 +0000
commitc063c7b8cb8574dfc6f84f0268fad28c52bc84fe (patch)
treee68983f7d7bd2851e43cf8f16322ebfb2a99fdd7
parent8a12d9ae2eecb0e3b6e2f61253b66934c5165d06 (diff)
downloadtor-c063c7b8cb8574dfc6f84f0268fad28c52bc84fe.tar.gz
tor-c063c7b8cb8574dfc6f84f0268fad28c52bc84fe.zip
r8757@Kushana: nickm | 2006-09-07 13:07:46 -0400
Fix more compile warnings on Woody. svn:r8349
-rw-r--r--configure.in2
-rw-r--r--src/or/eventdns_tor.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index d3f2654a83..acedafc7af 100644
--- a/configure.in
+++ b/configure.in
@@ -502,6 +502,8 @@ AC_CHECK_SIZEOF(__int64)
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(time_t)
+AC_CHECK_TYPES([uint, u_char])
+
if test -z "$CROSS_COMPILE"; then
AC_CACHE_CHECK([whether time_t is signed], tor_cv_time_t_signed, [
AC_TRY_RUN([
diff --git a/src/or/eventdns_tor.h b/src/or/eventdns_tor.h
index e32a190bb4..a10b3726bb 100644
--- a/src/or/eventdns_tor.h
+++ b/src/or/eventdns_tor.h
@@ -1,8 +1,12 @@
#include "orconfig.h"
#define DNS_USE_OPENSSL_FOR_ID
+#ifndef HAVE_UINT
typedef unsigned int uint;
+#endif
+#ifndef HAVE_U_CHAR
typedef unsigned char u_char;
+#endif
#ifdef MS_WINDOWS
#define inline __inline
#endif