Skip to content

Commit

Permalink
Fix header breakage due to redefining PATH_MAX.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ramsay Allan Jones authored and Junio C Hamano committed Aug 2, 2006
1 parent 579d1fb commit 8e76483
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions builtin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[];

Expand Down

0 comments on commit 8e76483

Please sign in to comment.