summaryrefslogtreecommitdiff
path: root/net/torsocks/files/patch-src_common_compat.h
blob: 8e832b9ce584d993fbc88ae44b92951f6e7bf1a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- src/common/compat.h.orig	2018-04-20 15:41:42 UTC
+++ src/common/compat.h
@@ -214,6 +214,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__ */