93dc2d
commit 8c8a71c85f2ed5cc90d08d82ce645513fc907cb6
93dc2d
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
93dc2d
Date:   Mon Jan 24 10:57:09 2022 +0530
93dc2d
93dc2d
    tst-realpath-toolong: Fix hurd build
93dc2d
    
93dc2d
    Define PATH_MAX to a constant if it isn't already defined, like in hurd.
93dc2d
    
93dc2d
    Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
93dc2d
    (cherry picked from commit 976db046bc3a3738f69255ae00b0a09b8e77fd9c)
93dc2d
93dc2d
diff --git a/stdlib/tst-realpath-toolong.c b/stdlib/tst-realpath-toolong.c
93dc2d
index 8bed772460b37571..4388890294374601 100644
93dc2d
--- a/stdlib/tst-realpath-toolong.c
93dc2d
+++ b/stdlib/tst-realpath-toolong.c
93dc2d
@@ -29,6 +29,10 @@
93dc2d
 
93dc2d
 #define BASENAME "tst-realpath-toolong."
93dc2d
 
93dc2d
+#ifndef PATH_MAX
93dc2d
+# define PATH_MAX 1024
93dc2d
+#endif
93dc2d
+
93dc2d
 int
93dc2d
 do_test (void)
93dc2d
 {