From: Gisle Vanem Date: Wed, 5 Nov 2014 13:10:49 +0000 (+0000) Subject: ssh: Fixed build on platforms where R_OK is not defined X-Git-Tag: curl-7_40_0~448 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cfe3bc0010a8089c689b8c01a4abe39ba839191;p=curl 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 --- 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