]> git.ipfire.org Git - thirdparty/git.git/commit - abspath.c
real_path: prevent redefinition of MAXSYMLINKS
authorBrandon Williams <bmwill@google.com>
Mon, 9 Jan 2017 18:50:23 +0000 (10:50 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Jan 2017 19:25:57 +0000 (11:25 -0800)
commit7aeb81f1de6a06c7ebc9a881e3a07591d760c9d6
tree2f725f557ec74962d95902fc2832eb6a0afe3c90
parente9a379c352b02ca560c58a56aa723994aa42666f
real_path: prevent redefinition of MAXSYMLINKS

The macro 'MAXSYMLINKS' is already defined on macOS and Linux in
<sys/param.h>.  If 'MAXSYMLINKS' has already been defined, use the value
defined by the OS otherwise default to a value of 32 which is more
inline with what is allowed by many systems.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
abspath.c