X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-compat-util.h;h=0272d043d0b82dc6ad0ff4836fe8db8ed1e1d960;hb=b3dc864c6d5ffb96513328f976c076c3a90331b0;hp=552b8ec23a1a927208f1ed4c48d08b513d8572c5;hpb=551029af305e04bed638771a3932e376243dddcb;p=git.git diff --git a/git-compat-util.h b/git-compat-util.h index 552b8ec23..0272d043d 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -26,6 +26,13 @@ #include #include +/* On most systems 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