]> granicus.if.org Git - curl/commitdiff
ssh: Fixed build on platforms where R_OK is not defined
authorGisle Vanem <gvanem@yahoo.no>
Wed, 5 Nov 2014 13:10:49 +0000 (13:10 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 5 Nov 2014 13:09:08 +0000 (13:09 +0000)
Bug: http://curl.haxx.se/mail/lib-2014-11/0035.html
Reported-by: Jan Ehrhardt
lib/ssh.c

index 21f4f9dbcb615d0a3444ce4c1cd0782758be3ff1..6b849c611e6503ac2419eb34e40f20ec97b9f46f 100644 (file)
--- 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