Преглед изворни кода

r8757@Kushana: nickm | 2006-09-07 13:07:46 -0400
Fix more compile warnings on Woody.


svn:r8349

Nick Mathewson пре 17 година
родитељ
комит
c063c7b8cb
2 измењених фајлова са 6 додато и 0 уклоњено
  1. 2 0
      configure.in
  2. 4 0
      src/or/eventdns_tor.h

+ 2 - 0
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([

+ 4 - 0
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