diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2022-01-24 10:57:09 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2022-01-24 11:00:23 +0530 |
commit | 976db046bc3a3738f69255ae00b0a09b8e77fd9c (patch) | |
tree | cec9c1ff39ce43be216c2e8220ba4bc0f5645fb7 /stdlib | |
parent | 23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e (diff) | |
download | glibc-976db046bc3a3738f69255ae00b0a09b8e77fd9c.tar.gz glibc-976db046bc3a3738f69255ae00b0a09b8e77fd9c.tar.xz glibc-976db046bc3a3738f69255ae00b0a09b8e77fd9c.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>
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/tst-realpath-toolong.c | 4 |
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) { |