]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
extra precaution to make PATH_MAX always be defined
authorDaniel Stenberg <daniel@haxx.se>
Tue, 19 Jun 2007 11:50:08 +0000 (11:50 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 Jun 2007 11:50:08 +0000 (11:50 +0000)
lib/ssh.c

index 108c0156ac409859cd8f1556dd19419cea0ea9ce..6d3b5f0a8c58037b0bb72e01eceecc6c0c58e976 100644 (file)
--- a/lib/ssh.c
+++ b/lib/ssh.c
 #include "memdebug.h"
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 1024 /* just an extra precaution since there are systems that
+                         have their definition hidden well */
+#endif
+
 #ifndef LIBSSH2_SFTP_S_IRUSR
 /* Here's a work-around for those of you who happend to run a libssh2 version
    that is 0.14 or older. We should remove this kludge as soon as we can