aboutsummaryrefslogtreecommitdiff
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:36:59 +0530
commit8c8a71c85f2ed5cc90d08d82ce645513fc907cb6 (patch)
tree46fc6a8573c638a2844ac1bcf6abde244bc1852d /stdlib
parentf7a79879c0b2bef0dadd6caaaeeb0d26423e04e5 (diff)
downloadglibc-8c8a71c85f2ed5cc90d08d82ce645513fc907cb6.tar.xz
glibc-8c8a71c85f2ed5cc90d08d82ce645513fc907cb6.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> (cherry picked from commit 976db046bc3a3738f69255ae00b0a09b8e77fd9c)
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)
{