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

[tor-commits] [torsocks/master] Define LIBC_SYSCALL_ for OS X



commit b1394b89b901c53b265b3aa4f0a1373b474e1540
Author: Luke Gallagher <luke@xxxxxxxxxxxxxxxxxx>
Date:   Fri Aug 30 09:29:40 2013 +1000

    Define LIBC_SYSCALL_ for OS X
    
    OS X has the same declaration as FreeBSD.
    
    Signed-off-by: David Goulet <dgoulet@xxxxxxxxx>
---
 src/lib/torsocks.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/torsocks.h b/src/lib/torsocks.h
index 7c2ff59..3a23eb4 100644
--- a/src/lib/torsocks.h
+++ b/src/lib/torsocks.h
@@ -188,7 +188,8 @@ struct hostent **__result, int *__h_errnop
 
 #endif /* __linux__ */
 
-#if defined(__FreeBSD__)
+#if (defined(__FreeBSD__) || defined(__darwin__))
+
 #include <sys/syscall.h>
 #include <unistd.h>
 
@@ -199,7 +200,7 @@ struct hostent **__result, int *__h_errnop
 #define LIBC_SYSCALL_SIG int __number, ...
 #define LIBC_SYSCALL_ARGS __number
 
-#endif	/* __FreeBSD__ */
+#endif /* __FreeBSD__, __darwin__ */
 
 /*
  * The following defines are libc function declarations using the macros



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits