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