SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
41
net/torsocks/patches/patch-src_common_compat_h
Normal file
41
net/torsocks/patches/patch-src_common_compat_h
Normal file
|
@ -0,0 +1,41 @@
|
|||
Index: src/common/compat.h
|
||||
--- src/common/compat.h.orig
|
||||
+++ src/common/compat.h
|
||||
@@ -23,7 +23,8 @@
|
||||
#endif
|
||||
|
||||
#if (defined(__linux__) || defined(__GLIBC__) || defined(__FreeBSD__) || \
|
||||
- defined(__darwin__) || defined(__NetBSD__))
|
||||
+ defined(__darwin__) || defined(__NetBSD__) || \
|
||||
+ defined(__OpenBSD__))
|
||||
|
||||
#ifndef RTLD_NEXT
|
||||
#define RTLD_NEXT ((void *) -1)
|
||||
@@ -58,7 +59,7 @@ void tsocks_once(tsocks_once_t *o, void (*init_routine
|
||||
|
||||
#else
|
||||
#error "OS not supported."
|
||||
-#endif /* __linux__, __GLIBC__, __darwin__, __FreeBSD__, __NetBSD__ */
|
||||
+#endif /* __linux__, __GLIBC__, __darwin__, __FreeBSD__, __NetBSD__, __OpenBSD__ */
|
||||
|
||||
#if defined(__linux__)
|
||||
#include <unistd.h>
|
||||
@@ -196,7 +197,8 @@ void tsocks_once(tsocks_once_t *o, void (*init_routine
|
||||
|
||||
#endif /* __linux__ */
|
||||
|
||||
-#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__darwin__) || defined(__NetBSD__))
|
||||
+#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__darwin__) || \
|
||||
+ defined(__NetBSD__) || defined(__OpenBSD__))
|
||||
|
||||
#include <sys/syscall.h>
|
||||
#include <unistd.h>
|
||||
@@ -215,7 +217,7 @@ void tsocks_once(tsocks_once_t *o, void (*init_routine
|
||||
#define TSOCKS_NR_LISTEN SYS_listen
|
||||
#define TSOCKS_NR_RECVMSG SYS_recvmsg
|
||||
|
||||
-#endif /* __FreeBSD__, __FreeBSD_kernel__, __darwin__, __NetBSD__ */
|
||||
+#endif /* __FreeBSD__, __FreeBSD_kernel__, __darwin__, __NetBSD__, __OpenBSD__ */
|
||||
|
||||
#define TSOCKS_CLASSA_NET 0xff000000
|
||||
#define TSOCKS_LOOPBACK_NET 0x7f000000
|
Loading…
Add table
Add a link
Reference in a new issue