aboutsummaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorMartin Atukunda <matlads@dsmagic.com>2005-12-13 15:21:34 +0300
committerJunio C Hamano <junkio@cox.net>2005-12-14 14:26:44 -0800
commit252fef7149204d52ed4b46fd7e8ac8c803ceb0aa (patch)
tree1ac05ac877331566ef589178973dd80774f101b6 /git-compat-util.h
parent773b6339435ab3bddecb9b78e49720e22124b52a (diff)
downloadgit-252fef7149204d52ed4b46fd7e8ac8c803ceb0aa.tar.gz
git-252fef7149204d52ed4b46fd7e8ac8c803ceb0aa.tar.xz
define MAXPATHLEN for hosts that don't support it
[jc: Martin says syllable (www.syllable.org) wants this.] Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 4185b1274..ead0ede58 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -110,4 +110,7 @@ static inline int sane_case(int x, int high)
return x;
}
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 256
+#endif
#endif