diff --git a/git-compat-util.h b/git-compat-util.h
index 552b8ec23a1a927208f1ed4c48d08b513d8572c5..0272d043d0b82dc6ad0ff4836fe8db8ed1e1d960 100644 (file)
--- a/git-compat-util.h
+++ b/git-compat-util.h
#include <sys/types.h>
#include <dirent.h>
+/* On most systems <limits.h> would have given us this, but
+ * not on some systems (e.g. GNU/Hurd).
+ */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
#ifdef __GNUC__
#define NORETURN __attribute__((__noreturn__))
#else