diff options
author | abs <abs> | 2009-02-19 00:51:12 +0000 |
---|---|---|
committer | abs <abs> | 2009-02-19 00:51:12 +0000 |
commit | c9f357dea82e268f63b5a2529c833c354cde50fb (patch) | |
tree | 0f12b66ff1c10d09a42c0d94a4e39a1818bf817b /net | |
parent | 44e89783424019bc93c2b21c2437a8354a37fb56 (diff) | |
download | pkgsrc-c9f357dea82e268f63b5a2529c833c354cde50fb.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')
-rw-r--r-- | net/tnftp/files/libnetbsd/glob.c | 7 |
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 '$' |