[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torsocks/master] Fix: syscall mmap for NetBSD
commit ab81544478eb9a0db821fd33684cc2f6aac88c7c
Author: Thomas Klausner <wiz@xxxxxxxxxx>
Date: Fri Nov 21 08:19:54 2014 -0500
Fix: syscall mmap for NetBSD
Signed-off-by: Thomas Klausner <wiz@xxxxxxxxxx>
Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
src/lib/syscall.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/syscall.c b/src/lib/syscall.c
index 7b8d45a..96016bb 100644
--- a/src/lib/syscall.c
+++ b/src/lib/syscall.c
@@ -84,7 +84,7 @@ static LIBC_ACCEPT_RET_TYPE handle_accept(va_list args)
return tsocks_accept(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.
*/
@@ -104,7 +104,7 @@ static LIBC_SYSCALL_RET_TYPE handle_mmap(va_list args)
return (LIBC_SYSCALL_RET_TYPE) mmap(addr, len, prot, flags, fd, offset);
}
-#endif /* __linux__, __darwin__ */
+#endif /* __linux__, __darwin__, __FreeBSD_kernel__, __i386__, __NetBSD__ */
/*
* Handle munmap(2) syscall.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits