[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-dev] torsocks-2.0: NetBSD mmap patch



Hi!

Please apply the attached patch to fix torsocks-2.0 on NetBSD.

Thanks,
 Thomas
$NetBSD$

handle_mmap() is needed in order to correctly build torsocks.

--- src/lib/syscall.c.orig	2014-08-11 16:44:46.000000000 +0000
+++ src/lib/syscall.c
@@ -68,7 +68,7 @@ static LIBC_CONNECT_RET_TYPE handle_conn
 	return tsocks_connect(sockfd, addr, addrlen);
 }
 
-#if (defined(__linux__) || defined(__darwin__) || (defined(__FreeBSD_kernel__) && defined(__i386__)))
+#if (defined(__linux__) || defined(__darwin__) || (defined(__FreeBSD_kernel__) && defined(__i386__)) || defined(__NetBSD__))
 /*
  * Handle mmap(2) syscall.
  */
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev