--- /tmp/work/old/src/lib/libc/gen/__glob13.c	2010-11-02 22:33:35.000000000 +0200
+++ src/lib/libc/gen/__glob13.c	2010-11-02 22:33:35.000000000 +0200
@@ -78,6 +78,11 @@
 #include <string.h>
 #include <unistd.h>
 
+#if !defined(ARG_MAX)
+#include <limits.h>
+#define	ARG_MAX	_POSIX_ARG_MAX
+#endif
+
 #ifdef __weak_alias
 #ifdef __LIBC12_SOURCE__
 __weak_alias(glob,_glob)
