From 20526e726c016840e37ecf44404bf5a0ad45c780 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 28 Nov 2001 02:16:44 +0000 Subject: [PATCH] Support some MAXPATHLEN alternatives --- include/ac/param.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ac/param.h b/include/ac/param.h index 0acfd4392a..5020fac4f4 100644 --- a/include/ac/param.h +++ b/include/ac/param.h @@ -19,8 +19,12 @@ #endif #ifndef MAXPATHLEN -# ifdef _MAX_PATH +# if defined(PATHMAX) +# define MAXPATHLEN PATHMAX + +# elif defined(_MAX_PATH) # define MAXPATHLEN _MAX_PATH + # else # define MAXPATHLEN 4096 # endif -- 2.39.5