about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2022-01-24 10:57:09 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2022-01-24 11:00:23 +0530
commit976db046bc3a3738f69255ae00b0a09b8e77fd9c (patch)
treecec9c1ff39ce43be216c2e8220ba4bc0f5645fb7 /stdlib
parent23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e (diff)
downloadglibc-976db046bc3a3738f69255ae00b0a09b8e77fd9c.tar.gz
glibc-976db046bc3a3738f69255ae00b0a09b8e77fd9c.tar.xz
glibc-976db046bc3a3738f69255ae00b0a09b8e77fd9c.zip
tst-realpath-toolong: Fix hurd build
Define PATH_MAX to a constant if it isn't already defined, like in hurd.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-realpath-toolong.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stdlib/tst-realpath-toolong.c b/stdlib/tst-realpath-toolong.c
index 8bed772460..4388890294 100644
--- a/stdlib/tst-realpath-toolong.c
+++ b/stdlib/tst-realpath-toolong.c
@@ -29,6 +29,10 @@
 
 #define BASENAME "tst-realpath-toolong."
 
+#ifndef PATH_MAX
+# define PATH_MAX 1024
+#endif
+
 int
 do_test (void)
 {