aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorXiang Xiao <xiaoxiang@xiaomi.com>2021-05-19 18:20:38 +0800
committerJakub Jelen <jjelen@redhat.com>2021-06-10 09:22:32 +0200
commit672c1f8a3a3ee9b76283583df1e9d1f4fd0a8d17 (patch)
tree410ad757c7fa2e4ae55fc519196465fdcfc7e281 /include/libssh
parent592d256a0bbfead2dc7eac1494406b9d923a8f23 (diff)
downloadlibssh-672c1f8a3a3ee9b76283583df1e9d1f4fd0a8d17.tar.gz
libssh-672c1f8a3a3ee9b76283583df1e9d1f4fd0a8d17.tar.xz
libssh-672c1f8a3a3ee9b76283583df1e9d1f4fd0a8d17.zip
windows: Define PATH_MAX to MAX_PATH
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Change-Id: Ib3358ecb029d93c263d3cb39da25e82a772ae2c7
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/priv.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 3e549b79..b4729bb8 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -169,7 +169,11 @@ int gettimeofday(struct timeval *__p, void *__t);
/* some constants */
#ifndef PATH_MAX
-# define PATH_MAX 4096
+#ifdef MAX_PATH
+#define PATH_MAX MAX_PATH
+#else
+#define PATH_MAX 4096
+#endif
#endif
#ifndef MAX_PACKET_LEN