diff --git a/tools/mkdeps.c b/tools/mkdeps.c index 7c42c568e3..01db9c4e0c 100644 --- a/tools/mkdeps.c +++ b/tools/mkdeps.c @@ -58,7 +58,12 @@ #define MAX_BUFFER (4096) #define MAX_EXPAND (2048) -#define MAX_PATH (512) + +/* MAX_PATH might be defined in stdlib.h */ + +#if !defined(MAX_PATH) +# define MAX_PATH (512) +#endif /* NAME_MAX is typically defined in limits.h */