ssh.c: add PATH_MAX definition for WIN32
authorYang Tse <yangsita@gmail.com>
Fri, 19 Aug 2011 19:25:39 +0000 (21:25 +0200)
committerYang Tse <yangsita@gmail.com>
Fri, 19 Aug 2011 19:25:39 +0000 (21:25 +0200)
lib/ssh.c

index 3750930..c46511d 100644 (file)
--- a/lib/ssh.c
+++ b/lib/ssh.c
 /* 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 */