[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r9639: Try to build with recent libevents on mingw. (tor/trunk)
Author: nickm
Date: 2007-02-24 14:10:35 -0500 (Sat, 24 Feb 2007)
New Revision: 9639
Modified:
tor/trunk/
tor/trunk/ChangeLog
tor/trunk/configure.in
Log:
r11921@catbus: nickm | 2007-02-24 14:09:12 -0500
Try to build with recent libevents on mingw.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r11921] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/ChangeLog
===================================================================
--- tor/trunk/ChangeLog 2007-02-24 15:11:26 UTC (rev 9638)
+++ tor/trunk/ChangeLog 2007-02-24 19:10:35 UTC (rev 9639)
@@ -55,6 +55,8 @@
back online.
- On a malformed DNS reply, always give an error to the corresponding
DNS request.
+ - Build with recent libevents on platforms that do not define the
+ nonstandard types "u_int8_t" and friends.
o Minor features (controller):
- Warn the user when an application uses the obsolete binary v0
Modified: tor/trunk/configure.in
===================================================================
--- tor/trunk/configure.in 2007-02-24 15:11:26 UTC (rev 9638)
+++ tor/trunk/configure.in 2007-02-24 19:10:35 UTC (rev 9639)
@@ -196,6 +196,12 @@
dnl ------------------------------------------------------
dnl Where do you live, libevent? And how do we call you?
+dnl This is a disgusting hack so we safely include recent libevent headers.
+AC_CHECK_TYPE(u_int64_t, unsigned long long)
+AC_CHECK_TYPE(u_int32_t, unsigned long)
+AC_CHECK_TYPE(u_int16_t, unsigned short)
+AC_CHECK_TYPE(u_int8_t, unsigned char)
+
AC_CACHE_CHECK([for libevent directory], tor_cv_libevent_dir, [
saved_LIBS="$LIBS"
saved_LDFLAGS="$LDFLAGS"