freebsd-ports/net/torsocks/files/patch-src_common_compat.h
Pawel Pekala 92329e2249 Update to version 2.1.0
PR:		200503
Submitted by:	maintainer
2015-10-28 16:25:27 +00:00

13 lines
453 B
C

--- src/common/compat.h.orig 2015-05-27 18:54:22 UTC
+++ src/common/compat.h
@@ -187,6 +187,10 @@ void tsocks_once(tsocks_once_t *o, void
#define TSOCKS_NR_GETPEERNAME SYS_getpeername
#define TSOCKS_NR_LISTEN SYS_listen
#define TSOCKS_NR_RECVMSG SYS_recvmsg
+#if defined(__FreeBSD__)
+#define TSOCKS_NR_GETPID SYS_getpid
+#define TSOCKS_NR_FORK SYS_fork
+#endif
#endif /* __FreeBSD__, __FreeBSD_kernel__, __darwin__, __NetBSD__ */