Define NAME_MAX if not defined in bug-glob2.c and tst-gnuglob.c
authorDavid Bartley <dtbartle@maltodextrin.csclub.uwaterloo.ca>
Thu, 21 Aug 2008 01:17:12 +0000 (01:17 +0000)
committerDavid Bartley <dtbartle@maltodextrin.csclub.uwaterloo.ca>
Thu, 21 Aug 2008 01:17:12 +0000 (01:17 +0000)
posix/bug-glob2.c
posix/tst-gnuglob.c

index 88e3558..8d9fcd5 100644 (file)
 #include <string.h>
 #include <sys/stat.h>
 
+#ifndef NAME_MAX
+#define NAME_MAX 512
+#endif
+
 // #define DEBUG
 #ifdef DEBUG
 # define PRINTF(fmt, args...) \
index 95bfbae..e5c1380 100644 (file)
 #include <string.h>
 #include <sys/stat.h>
 
+#ifndef NAME_MAX
+#define NAME_MAX 512
+#endif
+
 
 // #define DEBUG
 #ifdef DEBUG