소스 검색

Fix compilation on platforms without IP6T_SO_ORIGINAL_DST

Nick Mathewson 9 년 전
부모
커밋
6285d9bdcf
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/or/connection_edge.c

+ 2 - 0
src/or/connection_edge.c

@@ -55,9 +55,11 @@
 
 #ifdef HAVE_LINUX_NETFILTER_IPV6_IP6_TABLES_H
 #include <linux/netfilter_ipv6/ip6_tables.h>
+#if defined(IP6T_SO_ORIGINAL_DST)
 #define TRANS_NETFILTER
 #define TRANS_NETFILTER_IPV6
 #endif
+#endif
 
 #if defined(HAVE_NET_IF_H) && defined(HAVE_NET_PFVAR_H)
 #include <net/if.h>