git: a6fa62515538 - main - net/torsocks: Fix build on 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 Jul 2024 16:59:02 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=a6fa625155380d7e90e4f1226ee0940e09104433 commit a6fa625155380d7e90e4f1226ee0940e09104433 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2024-07-25 16:54:43 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2024-07-25 16:58:56 +0000 net/torsocks: Fix build on 15 Reported by: fallout --- net/torsocks/files/patch-src_lib_getpeername.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/net/torsocks/files/patch-src_lib_getpeername.c b/net/torsocks/files/patch-src_lib_getpeername.c new file mode 100644 index 000000000000..15bceb1ab32e --- /dev/null +++ b/net/torsocks/files/patch-src_lib_getpeername.c @@ -0,0 +1,19 @@ +- workaround for https://gitlab.torproject.org/tpo/core/torsocks/-/issues/40023 + +--- src/lib/getpeername.c.orig 2024-07-25 16:31:28 UTC ++++ src/lib/getpeername.c +@@ -22,6 +22,8 @@ + + #include "torsocks.h" + ++#if __FreeBSD_cc_version < 1500000 ++ + /* getpeername(2) */ + TSOCKS_LIBC_DECL(getpeername, LIBC_GETPEERNAME_RET_TYPE, + LIBC_GETPEERNAME_SIG) +@@ -105,3 +107,5 @@ LIBC_GETPEERNAME_DECL + + return tsocks_getpeername(LIBC_GETPEERNAME_ARGS); + } ++ ++#endif