]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
tst-realpath-toolong: Fix hurd build
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Mon, 24 Jan 2022 05:27:09 +0000 (10:57 +0530)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 24 Jan 2022 09:30:01 +0000 (10:30 +0100)
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)

stdlib/tst-realpath-toolong.c

index 8bed772460b375718c8e7dd86a93d16197b26141..438889029437460141fb29bb23945dfc941ce909 100644 (file)
 
 #define BASENAME "tst-realpath-toolong."
 
+#ifndef PATH_MAX
+# define PATH_MAX 1024
+#endif
+
 int
 do_test (void)
 {