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
This commit is contained in:
Xiang Xiao
2021-05-19 18:20:38 +08:00
committed by Jakub Jelen
parent 592d256a0b
commit 672c1f8a3a
3 changed files with 15 additions and 11 deletions

View File

@@ -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