projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3af9ba1
)
ssh.c: add PATH_MAX definition for WIN32
author
Yang Tse
<yangsita@gmail.com>
Fri, 19 Aug 2011 19:25:39 +0000
(21:25 +0200)
committer
Yang Tse
<yangsita@gmail.com>
Fri, 19 Aug 2011 19:25:39 +0000
(21:25 +0200)
lib/ssh.c
patch
|
blob
|
history
diff --git
a/lib/ssh.c
b/lib/ssh.c
index
3750930
..
c46511d
100644
(file)
--- 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 */