aboutsummaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@yahoo.no>2014-11-05 13:10:49 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-11-05 13:09:08 +0000
commit3cfe3bc0010a8089c689b8c01a4abe39ba839191 (patch)
tree0b81112e23e3249740081f4980ad86233a7aa606 /lib/ssh.c
parent92e7e346f35b89d89c079403e5aeb16bee0e8836 (diff)
ssh: Fixed build on platforms where R_OK is not defined
Bug: http://curl.haxx.se/mail/lib-2014-11/0035.html Reported-by: Jan Ehrhardt
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 21f4f9dbc..6b849c611 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -94,6 +94,9 @@
#ifdef WIN32
# undef PATH_MAX
# define PATH_MAX MAX_PATH
+# ifndef R_OK
+# define R_OK 4
+# endif
#endif
#ifndef PATH_MAX