[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r16461: {tor} Backport: On recent linux kernels we were not detecting the (in tor/branches/tor-0_2_0-patches: . src/or)
Author: nickm
Date: 2008-08-07 15:41:54 -0400 (Thu, 07 Aug 2008)
New Revision: 16461
Modified:
tor/branches/tor-0_2_0-patches/ChangeLog
tor/branches/tor-0_2_0-patches/configure.in
tor/branches/tor-0_2_0-patches/src/or/connection_edge.c
Log:
Backport: On recent linux kernels we were not detecting the linux/netfilter_ipv4.h header properly, since we needed to have in_addr and in6_addr and __u32 defined before trying to include it. Fix that.
Modified: tor/branches/tor-0_2_0-patches/ChangeLog
===================================================================
--- tor/branches/tor-0_2_0-patches/ChangeLog 2008-08-07 19:39:52 UTC (rev 16460)
+++ tor/branches/tor-0_2_0-patches/ChangeLog 2008-08-07 19:41:54 UTC (rev 16461)
@@ -4,6 +4,8 @@
by rovv.
- Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
+ - Correctly detect the presence of the linux/netfilter_ipv4.h header
+ when building against recent kernels. Bugfix on 0.1.2.1-alpha.
Changes in version 0.2.0.30 - 2008-07-15
Modified: tor/branches/tor-0_2_0-patches/configure.in
===================================================================
--- tor/branches/tor-0_2_0-patches/configure.in 2008-08-07 19:39:52 UTC (rev 16460)
+++ tor/branches/tor-0_2_0-patches/configure.in 2008-08-07 19:41:54 UTC (rev 16461)
@@ -301,7 +301,7 @@
dnl These headers are not essential
-AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h inttypes.h utime.h sys/utime.h sys/mman.h netinet/in6.h malloc.h sys/syslimits.h malloc/malloc.h)
+AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h inttypes.h utime.h sys/utime.h sys/mman.h netinet/in6.h malloc.h sys/syslimits.h malloc/malloc.h linux/types.h)
TOR_CHECK_PROTOTYPE(malloc_good_size, HAVE_MALLOC_GOOD_SIZE_PROTOTYPE,
[#ifdef HAVE_MALLOC_H
@@ -336,6 +336,15 @@
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+#ifdef HAVE_LINUX_TYPES_H
+#include <linux/types.h>
+#endif
+#ifdef HAVE_NETINET_IN6_H
+#include <netinet/in6.h>
+#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif])
Modified: tor/branches/tor-0_2_0-patches/src/or/connection_edge.c
===================================================================
--- tor/branches/tor-0_2_0-patches/src/or/connection_edge.c 2008-08-07 19:39:52 UTC (rev 16460)
+++ tor/branches/tor-0_2_0-patches/src/or/connection_edge.c 2008-08-07 19:41:54 UTC (rev 16461)
@@ -14,6 +14,9 @@
#include "or.h"
+#ifdef HAVE_LINUX_TYPES_H
+#include <linux/types.h>
+#endif
#ifdef HAVE_LINUX_NETFILTER_IPV4_H
#include <linux/netfilter_ipv4.h>
#define TRANS_NETFILTER