瀏覽代碼

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>