diff options
-rw-r--r-- | net/tnftp/files/libnetbsd/glob.c | 7 | ||||
-rw-r--r-- | pkgtools/bootstrap-mk-files/files/mods/Linux.sys.mk | 8 | ||||
-rw-r--r-- | pkgtools/libnbcompat/files/nbcompat/param.h | 7 |
3 files changed, 19 insertions, 3 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 '$' diff --git a/pkgtools/bootstrap-mk-files/files/mods/Linux.sys.mk b/pkgtools/bootstrap-mk-files/files/mods/Linux.sys.mk index 1079052fb31..0bcd98621d3 100644 --- a/pkgtools/bootstrap-mk-files/files/mods/Linux.sys.mk +++ b/pkgtools/bootstrap-mk-files/files/mods/Linux.sys.mk @@ -1,10 +1,16 @@ -# $NetBSD: Linux.sys.mk,v 1.1.1.1 2006/07/14 23:13:01 jlam Exp $ +# $NetBSD: Linux.sys.mk,v 1.2 2009/02/19 00:51:12 abs Exp $ # NetBSD: sys.mk,v 1.58 2000/08/22 17:38:49 bjh21 Exp # @(#)sys.mk 8.2 (Berkeley) 3/21/94 unix?= We run Unix. OS?= Linux +# At least Ubuntu 8.1 sets __attribute__((warn_unused_result)) on fwrite() +# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509 +.if !defined(NOGCCERROR) +CFLAGS+= -Wno-error +.endif + .SUFFIXES: .out .a .ln .o .s .S .c .cc .cpp .cxx .C .F .f .r .y .l .cl .p .h .SUFFIXES: .sh .m4 diff --git a/pkgtools/libnbcompat/files/nbcompat/param.h b/pkgtools/libnbcompat/files/nbcompat/param.h index 9b804a0fc16..296fe6e52fb 100644 --- a/pkgtools/libnbcompat/files/nbcompat/param.h +++ b/pkgtools/libnbcompat/files/nbcompat/param.h @@ -1,4 +1,4 @@ -/* $NetBSD: param.h,v 1.2 2008/04/29 05:46:08 martin Exp $ */ +/* $NetBSD: param.h,v 1.3 2009/02/19 00:51:12 abs Exp $ */ /*- * Copyright (c) 2004 The NetBSD Foundation, Inc. @@ -47,4 +47,9 @@ # define MAX(a, b) ((a) < (b) ? (b) : (a)) #endif +/* At least Ubuntu 8.10 jumps through hoops to *undefine* ARG_MAX */ +#if !defined(ARG_MAX) +# define ARG_MAX sysconf(_SC_ARG_MAX) +#endif + #endif /* !_NBCOMPAT_SYS_PARAM_H_ */ |