summaryrefslogtreecommitdiff
path: root/net/tnftp
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2009-02-19 00:51:12 +0000
committerabs <abs@pkgsrc.org>2009-02-19 00:51:12 +0000
commit44dc2856b0ebab4e8005a611a583fc94be9fc27c (patch)
tree0f12b66ff1c10d09a42c0d94a4e39a1818bf817b /net/tnftp
parentac431e9fa595adee689224ecfbb8a865ca343cc3 (diff)
downloadpkgsrc-44dc2856b0ebab4e8005a611a583fc94be9fc27c.tar.gz
Fix PR 40151 - bootstrap of pkgsrc fails on Ubuntu 8.10
- At least Ubuntu 8.1 sets __attribute__((warn_unused_result)) on fwrite() http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509 which means (void)fwrite(...) will *always* generate a warning, so set -Wno-error to bypass this in Linux.sys.mk - Ubuntu 8.1 also jumps through hoops to ensure ARG_MAX is *undefined*, so work around this in tnftp and libnbcompat
Diffstat (limited to 'net/tnftp')
-rw-r--r--net/tnftp/files/libnetbsd/glob.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/tnftp/files/libnetbsd/glob.c b/net/tnftp/files/libnetbsd/glob.c
index ce2ef2b3256..a3df04233c3 100644
--- a/net/tnftp/files/libnetbsd/glob.c
+++ b/net/tnftp/files/libnetbsd/glob.c
@@ -1,4 +1,4 @@
-/* $NetBSD: glob.c,v 1.4 2007/08/07 02:06:59 lukem Exp $ */
+/* $NetBSD: glob.c,v 1.5 2009/02/19 00:51:12 abs Exp $ */
/* from NetBSD: glob.c,v 1.16 2006/03/26 18:11:22 christos Exp */
/*
@@ -57,6 +57,11 @@
#include "tnftp.h"
+/* At least Ubuntu 8.10 jumps through hoops to *undefine* ARG_MAX */
+#if !defined(ARG_MAX)
+# define ARG_MAX sysconf(_SC_ARG_MAX)
+#endif
+
#undef TILDE /* XXX: AIX 4.1.5 has this in <sys/ioctl.h> */
#define DOLLAR '$'