From: Siddhesh Poyarekar Date: Mon, 24 Jan 2022 05:27:09 +0000 (+0530) Subject: tst-realpath-toolong: Fix hurd build X-Git-Tag: glibc-2.35~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=976db046bc3a3738f69255ae00b0a09b8e77fd9c;p=thirdparty%2Fglibc.git 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 --- diff --git a/stdlib/tst-realpath-toolong.c b/stdlib/tst-realpath-toolong.c index 8bed772460b..43888902943 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) {