aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-08-19 21:25:39 +0200
committerYang Tse <yangsita@gmail.com>2011-08-19 21:25:39 +0200
commit38c5e81a679dc76e1b786085695a68f49adb7efb (patch)
treecb1ef2c26f83d477a727a719783d96d9ce3cfdd5 /lib
parent3af9ba166cfd456c943d2dbf92a1d4b4b893949c (diff)
ssh.c: add PATH_MAX definition for WIN32
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh.c5
1 files changed, 5 insertions, 0 deletions
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 */