aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-03 16:54:31 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-16 23:03:25 -0400
commitc00c45fee133cbb21f69321fa7715a9f7d91164d (patch)
tree173372a3e1dbdb31666a8e7d7f34135139e1245c /src
parentdb8259c23035a802610ece3dd437cd3ccc32ac9d (diff)
downloadtor-c00c45fee133cbb21f69321fa7715a9f7d91164d.tar
tor-c00c45fee133cbb21f69321fa7715a9f7d91164d.tar.gz
Fix OSX compilation.
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_edge.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index f29484217..a8ad9ec2e 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -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