tnftp: fixed compilation with glibc 2.8
This commit is contained in:
parent
b1897ef17f
commit
db331ba359
@ -1 +1,2 @@
|
|||||||
|
cc85dc7e259efc9e2c0f5dd74da5f808 tnftp-20070806-glibc-2.8.diff
|
||||||
bc78ddc857156f8bc4222d15cce6f76d tnftp-20070806.tar.gz
|
bc78ddc857156f8bc4222d15cce6f76d tnftp-20070806.tar.gz
|
||||||
|
@ -6,10 +6,12 @@
|
|||||||
name=tnftp
|
name=tnftp
|
||||||
version=20070806
|
version=20070806
|
||||||
release=1
|
release=1
|
||||||
source=(ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/$name-$version.tar.gz)
|
source=(ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/$name-$version.tar.gz
|
||||||
|
$name-$version-glibc-2.8.diff)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
patch -p1 -i $SRC/$name-$version-glibc-2.8.diff
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=$PKG/usr \
|
--prefix=$PKG/usr \
|
||||||
--mandir=$PKG/usr/man \
|
--mandir=$PKG/usr/man \
|
||||||
|
15
tnftp/tnftp-20070806-glibc-2.8.diff
Normal file
15
tnftp/tnftp-20070806-glibc-2.8.diff
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
--- tnftp-20070806/tnftp.h.glibc28 2007-08-07 21:37:03.000000000
|
||||||
|
-0400
|
||||||
|
+++ tnftp-20070806/tnftp.h 2008-06-20 23:08:14.000000000 -0400
|
||||||
|
@@ -499,3 +499,11 @@
|
||||||
|
#define getaddrinfo Rgetaddrinfo
|
||||||
|
#define getipnodebyname Rgetipnodebyname
|
||||||
|
#endif /* defined(USE_SOCKS) */
|
||||||
|
+
|
||||||
|
+/* GLIBC >= 2.8 have ARG_MAX replaced by _SC_ARG_MAX */
|
||||||
|
+#ifdef _SC_ARG_MAX
|
||||||
|
+#ifdef ARG_MAX
|
||||||
|
+#undef ARG_MAX
|
||||||
|
+#endif
|
||||||
|
+#define ARG_MAX sysconf(_SC_ARG_MAX)
|
||||||
|
+#endif
|
Loading…
x
Reference in New Issue
Block a user