From 38c5e81a679dc76e1b786085695a68f49adb7efb Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 19 Aug 2011 21:25:39 +0200 Subject: ssh.c: add PATH_MAX definition for WIN32 --- lib/ssh.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ssh.c b/lib/ssh.c index 375093098..c46511d5d 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -98,6 +98,11 @@ /* The last #include file should be: */ #include "memdebug.h" +#ifdef WIN32 +# undef PATH_MAX +# define PATH_MAX MAX_PATH +#endif + #ifndef PATH_MAX #define PATH_MAX 1024 /* just an extra precaution since there are systems that have their definition hidden well */ -- cgit v1.2.3