mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-13 10:30:43 +02:00
* gnu/packages/version-control.scm (libgit2-1.9): Update to 1.9.1. [source]: Add ‘libgit2-path-max.patch’. * gnu/packages/patches/libgit2-path-max.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Change-Id: If78a7001eb2cc3aa2d951fe2e501ae3ec576fc80 Co-authored-by: Ashish SHUKLA <ashish.is@lostca.se>
16 lines
471 B
Diff
16 lines
471 B
Diff
Work around lack of 'PATH_MAX' on the Hurd.
|
|
Submitted upstream: <https://github.com/libgit2/libgit2/pull/7100>.
|
|
|
|
diff --git a/tests/clar/clar.h b/tests/clar/clar.h
|
|
index ca72292ae..98e2b14e8 100644
|
|
--- a/tests/clar/clar.h
|
|
+++ b/tests/clar/clar.h
|
|
@@ -14,6 +14,8 @@
|
|
# define CLAR_MAX_PATH 4096
|
|
#elif defined(_WIN32)
|
|
# define CLAR_MAX_PATH MAX_PATH
|
|
+#elif !defined(PATH_MAX) /* GNU/Hurd */
|
|
+# define CLAR_MAX_PATH 4096
|
|
#else
|
|
# define CLAR_MAX_PATH PATH_MAX
|
|
#endif
|