]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix OSX compilation.
authorNick Mathewson <nickm@torproject.org>
Thu, 3 Apr 2014 20:54:31 +0000 (16:54 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 17 Apr 2014 03:03:25 +0000 (23:03 -0400)
src/or/connection_edge.c

index f294842177c47b317b65223d54fdd2db15b7e838..a8ad9ec2e2c8dbd9d20dc080a082ca1ab69cf531 100644 (file)
@@ -1391,6 +1391,7 @@ get_pf_socket(void)
 }
 #endif
 
+#if defined(TRANS_NETFILTER) || defined(TRANS_PF)
 /** Try fill in the address of <b>req</b> from the socket configured
  * with <b>conn</b>. */
 static int
@@ -1426,7 +1427,9 @@ destination_from_socket(entry_connection_t *conn, socks_request_t *req)
 
   return 0;
 }
+#endif
 
+#ifdef TRANS_PF
 static int
 destination_from_pf(entry_connection_t *conn, socks_request_t *req)
 {
@@ -1507,6 +1510,7 @@ destination_from_pf(entry_connection_t *conn, socks_request_t *req)
 
   return 0;
 }
+#endif
 
 /** Fetch the original destination address and port from a
  * system-specific interface and put them into a