diff options
author | Yang Tse <yangsita@gmail.com> | 2011-08-19 21:25:39 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-08-19 21:25:39 +0200 |
commit | 38c5e81a679dc76e1b786085695a68f49adb7efb (patch) | |
tree | cb1ef2c26f83d477a727a719783d96d9ce3cfdd5 /lib/ssh.c | |
parent | 3af9ba166cfd456c943d2dbf92a1d4b4b893949c (diff) |
ssh.c: add PATH_MAX definition for WIN32
Diffstat (limited to 'lib/ssh.c')
-rw-r--r-- | lib/ssh.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 */ |