tsocks: fix musl.
This commit is contained in:
parent
11376fe149
commit
1888d588d7
2 changed files with 37 additions and 1 deletions
31
srcpkgs/tsocks/patches/fix-musl.patch
Normal file
31
srcpkgs/tsocks/patches/fix-musl.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
--- configure.in.orig 2015-08-21 23:38:47.726879936 +0200
|
||||
+++ configure.in 2015-08-21 23:39:13.031879310 +0200
|
||||
@@ -68,7 +68,7 @@ dnl Check for the fcntl header
|
||||
AC_CHECK_HEADER(fcntl.h,,AC_MSG_ERROR("fcntl.h not found"))
|
||||
|
||||
dnl Check for the poll header
|
||||
-AC_CHECK_HEADER(sys/poll.h,,AC_MSG_ERROR("sys/poll.h not found"))
|
||||
+AC_CHECK_HEADER(poll.h,,AC_MSG_ERROR("poll.h not found"))
|
||||
|
||||
dnl Other headers we're interested in
|
||||
AC_CHECK_HEADERS(unistd.h)
|
||||
@@ -316,7 +316,7 @@ for testproto in 'struct pollfd *ufds, u
|
||||
do
|
||||
if test "${PROTO}" = ""; then
|
||||
AC_TRY_COMPILE([
|
||||
- #include <sys/poll.h>
|
||||
+ #include <poll.h>
|
||||
int poll($testproto);
|
||||
],,[PROTO="$testproto";],)
|
||||
fi
|
||||
--- tsocks.c.orig 2015-08-21 23:39:34.644878775 +0200
|
||||
+++ tsocks.c 2015-08-21 23:39:49.338878412 +0200
|
||||
@@ -41,7 +41,7 @@ char *progname = "libtsocks";
|
||||
#include <strings.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
-#include <sys/poll.h>
|
||||
+#include <poll.h>
|
||||
#include <sys/time.h>
|
||||
#include <pwd.h>
|
||||
#include <errno.h>
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'tsocks'
|
||||
pkgname=tsocks
|
||||
version=1.8beta5
|
||||
revision=2
|
||||
revision=3
|
||||
wrksrc="tsocks-1.8"
|
||||
build_style=gnu-configure
|
||||
configure_args="--libdir=/usr/lib"
|
||||
|
@ -11,6 +11,11 @@ license="GPL-2"
|
|||
homepage="http://tsocks.sourceforge.net/"
|
||||
distfiles="${SOURCEFORGE_SITE}/tsocks/tsocks-$version.tar.gz"
|
||||
checksum=849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347
|
||||
hostmakedepends="automake"
|
||||
|
||||
pre_configure() {
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vmkdir usr/share/examples/tsocks
|
||||
|
|
Loading…
Reference in a new issue