about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/test-canon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/test-canon.c b/stdlib/test-canon.c
index d06ec4d581..c8be8d2d96 100644
--- a/stdlib/test-canon.c
+++ b/stdlib/test-canon.c
@@ -28,6 +28,9 @@
 #include <unistd.h>
 #include <sys/param.h>
 
+#ifndef PATH_MAX
+# define PATH_MAX 4096
+#endif
 static char	cwd[PATH_MAX];
 static size_t	cwd_len;