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>
Ramsay Allan Jones committed
Jul 30, 2006 at 17:00 UTC
8e76483ce0ce256b01345abc4ca97b1f94aed354
1 file changed
+1
-4
builtin.h
+1
-4
@@ -2,10 +2,7 @@
2
#define BUILTIN_H
3
4
#include <stdio.h>
5
-
6
-#ifndef PATH_MAX
7
-# define PATH_MAX 4096
8
-#endif
5
+#include <limits.h>
6
7
extern const char git_version_string[];
8