Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/glob.c,v retrieving revision 1.22 retrieving revision 1.22.2.1 diff -u -p -r1.22 -r1.22.2.1 --- src/lib/libc/gen/glob.c 2008/02/22 18:33:51 1.22 +++ src/lib/libc/gen/glob.c 2008/06/04 02:04:33 1.22.2.1 @@ -1,4 +1,4 @@ -/* $NetBSD: glob.c,v 1.22 2008/02/22 18:33:51 christos Exp $ */ +/* $NetBSD: glob.c,v 1.22.2.1 2008/06/04 02:04:33 yamt Exp $ */ /* * Copyright (c) 1989, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)glob.c 8.3 (Berkeley) 10/13/93"; #else -__RCSID("$NetBSD: glob.c,v 1.22 2008/02/22 18:33:51 christos Exp $"); +__RCSID("$NetBSD: glob.c,v 1.22.2.1 2008/06/04 02:04:33 yamt Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -87,6 +87,11 @@ __RCSID("$NetBSD: glob.c,v 1.22 2008/02/ #define NO_GETPW_R #endif +#if !defined(ARG_MAX) +#include +#define ARG_MAX _POSIX_ARG_MAX +#endif + /* * XXX: For NetBSD 1.4.x compatibility. (kill me l8r) */