Add a GIT_PATH_MAX constant
commit5ee2fe777c41d9ad9e7eb9fece56fe21f830c5cd
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Wed, 3 Dec 2008 23:53:55 +0000 (3 23:53 +0000)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 9 Dec 2008 16:37:52 +0000 (9 08:37 -0800)
tree436cda88b3b747c66549eb0fc0c89d1102f967c1
parent192678b55c30d0652356a5021b521f8e205f3428
Add a GIT_PATH_MAX constant

The PATH_MAX symbol is often, but not always, defined
in the <limits.h> header.  In particular, on cygwin you
need to include this header to avoid a compilation error.

However, some systems define PATH_MAX to be something as
small as 256, which POSIX is happy to allow, while others
allow much larger values.  In general it can vary from
one filesystem to another.

In order to avoid the vagaries of different systems, define
our own symbol.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
src/common.h
src/fileops.c