Skip to content

Commit 68bb19a

Browse files
sthibaulgitster
authored andcommitted
clar: compilation fix for GNU/Hurd
clar.h fails to define CLAR_MAX_PATH on GNU/Hurd where PATH_MAX is not defined. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9a2fb14 commit 68bb19a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

t/unit-tests/clar/clar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <stdlib.h>
1111
#include <limits.h>
1212

13-
#if defined(_WIN32) && defined(CLAR_WIN32_LONGPATHS)
13+
#if defined(__GNU__) || defined(_WIN32) && defined(CLAR_WIN32_LONGPATHS)
1414
# define CLAR_MAX_PATH 4096
1515
#elif defined(_WIN32)
1616
# define CLAR_MAX_PATH MAX_PATH

0 commit comments

Comments
 (0)