mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
net-ftp/tnftp: add patch to include socks.h
The socks.h provided by net-proxy/dante contains the missing declaration of the socks support functions in addition to the alias defines. Closes: https://bugs.gentoo.org/949087 Signed-off-by: Sven Wegener <swegener@gentoo.org>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
--- tnftp-20230507/tnftp.h
|
||||
+++ tnftp-20230507/tnftp.h
|
||||
@@ -487,28 +487,7 @@
|
||||
#define TM_YEAR_BASE 1900
|
||||
|
||||
#if defined(USE_SOCKS) /* (Dante) SOCKS5 */
|
||||
-#define connect Rconnect
|
||||
-#define bind Rbind
|
||||
-#define getsockname Rgetsockname
|
||||
-#define getpeername Rgetpeername
|
||||
-#define accept Raccept
|
||||
-#define rresvport Rrresvport
|
||||
-#define bindresvport Rbindresvport
|
||||
-#define gethostbyname Rgethostbyname
|
||||
-#define gethostbyname2 Rgethostbyname2
|
||||
-#define sendto Rsendto
|
||||
-#define recvfrom Rrecvfrom
|
||||
-#define recvfrom Rrecvfrom
|
||||
-#define write Rwrite
|
||||
-#define writev Rwritev
|
||||
-#define send Rsend
|
||||
-#define sendmsg Rsendmsg
|
||||
-#define read Rread
|
||||
-#define readv Rreadv
|
||||
-#define recv Rrecv
|
||||
-#define recvmsg Rrecvmsg
|
||||
-#define getaddrinfo Rgetaddrinfo
|
||||
-#define getipnodebyname Rgetipnodebyname
|
||||
+#include <socks.h>
|
||||
#endif /* defined(USE_SOCKS) */
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
@@ -21,6 +21,10 @@ RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=( ChangeLog README THANKS )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-socks-include.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--enable-editcomplete \
|
||||
|
||||
Reference in New Issue
Block a user