projects/guix·blob java-team · refs

16 lines · 471 B

1Work around lack of 'PATH_MAX' on the Hurd.
2Submitted upstream: <https://github.com/libgit2/libgit2/pull/7100>.
3
4diff --git a/tests/clar/clar.h b/tests/clar/clar.h
5index ca72292ae..98e2b14e8 100644
6--- a/tests/clar/clar.h
7+++ b/tests/clar/clar.h
8@@ -14,6 +14,8 @@
9 # define CLAR_MAX_PATH 4096
10 #elif defined(_WIN32)
11 # define CLAR_MAX_PATH MAX_PATH
12+#elif !defined(PATH_MAX) /* GNU/Hurd */
13+# define CLAR_MAX_PATH 4096
14 #else
15 # define CLAR_MAX_PATH PATH_MAX
16 #endif