mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
Fixes a regression introduced in 04e9e4a462.
* gnu/packages/patches/git-clar-path-max.patch: New file.
* gnu/packages/version-control.scm (git-minimal): Use it.
* gnu/local.mk (dist_patch_DATA): Add it.
Change-Id: I7b1eb519952674cf66b745bd0a71bbe3395d3bdc
16 lines
513 B
Diff
16 lines
513 B
Diff
On GNU/Hurd, 'PATH_MAX' is undefined. Provide a reasonable default value.
|
|
Adapted from <https://github.com/libgit2/libgit2/pull/7100>.
|
|
|
|
diff --git a/tests/clar/clar.h b/tests/clar/clar.h
|
|
index ca72292ae91..98e2b14e880 100644
|
|
--- a/t/unit-tests/clar/clar.h
|
|
+++ b/t/unit-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
|