diff mbox series

[committed,v2] tst-realpath-toolong: Fix hurd build

Message ID 20220124060025.2237814-1-siddhesh@sourceware.org
State Committed
Commit 976db046bc3a3738f69255ae00b0a09b8e77fd9c
Headers show
Series [committed,v2] tst-realpath-toolong: Fix hurd build | expand

Commit Message

Siddhesh Poyarekar Jan. 24, 2022, 6 a.m. UTC
Thanks, I've committed this after confirming that build-many-glibcs
works for i686-gnu.

-->8--

Define PATH_MAX to a constant if it isn't already defined, like in hurd.

Signed-off-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
---
 stdlib/tst-realpath-toolong.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

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)
 {