U src/lib/libc/gen/glob.c
U src/lib/libc/gen/glob.c
/tmp/work/old/src/lib/libc/gen/glob.c
/tmp/work/new/src/lib/libc/gen/glob.c
--- /tmp/work/old/src/lib/libc/gen/glob.c	2010-11-02 22:12:20.000000000 +0200
+++ src/lib/libc/gen/glob.c	2010-11-02 22:12:20.000000000 +0200
@@ -87,6 +87,11 @@
 #define NO_GETPW_R
 #endif
 
+#if !defined(ARG_MAX)
+#include <limits.h>
+#define	ARG_MAX	_POSIX_ARG_MAX
+#endif
+
 /*
  * XXX: For NetBSD 1.4.x compatibility. (kill me l8r)
  */
