summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
authorRamsay Allan Jones <ramsay@ramsay1.demon.co.uk>2006-07-30 16:00:40 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-08-02 07:27:18 (GMT)
commit8e76483ce0ce256b01345abc4ca97b1f94aed354 (patch)
treea9304c1365a1a0d8bc5e42fde9babf5d71b1d5ff /builtin.h
parent579d1fbfaf25550254014fa472faac95f88eb779 (diff)
downloadgit-8e76483ce0ce256b01345abc4ca97b1f94aed354.zip
git-8e76483ce0ce256b01345abc4ca97b1f94aed354.tar.gz
git-8e76483ce0ce256b01345abc4ca97b1f94aed354.tar.bz2
Fix header breakage due to redefining PATH_MAX.
The header builtin.h was, incorrectly, redefining PATH_MAX which causes a header order dependency in builtin-write-tree.c. The fix is to simply include <limits.h> directly to obtain the correct definition of PATH_MAX. Signed-off-by: Ramsay Allan Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin.h')
-rw-r--r--builtin.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/builtin.h b/builtin.h
index 1c8637a..88c4d84 100644
--- a/builtin.h
+++ b/builtin.h
@@ -2,10 +2,7 @@
#define BUILTIN_H
#include <stdio.h>
-
-#ifndef PATH_MAX
-# define PATH_MAX 4096
-#endif
+#include <limits.h>
extern const char git_version_string[];