commit | 054cad3bea7e8f0ed8474520faf1471b705e150b | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jan.kundrat@cesnet.cz> | Thu Dec 09 23:34:59 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Mar 15 11:36:42 2022 +0100 |
tree | 0a6a567417b3f5502ebc077a62c6f46cc86d7d69 | |
parent | e31e4f5cbd355f380f0b10a3030f14d3ccadbd8c [diff] |
compat: MSVC: handle `PATH_MAX` and `_POSIX_PATH_MAX`
diff --git a/compat/posix-shims/unistd.h b/compat/posix-shims/unistd.h index ab717a7..17e4024 100644 --- a/compat/posix-shims/unistd.h +++ b/compat/posix-shims/unistd.h
@@ -52,4 +52,12 @@ typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t; +#include <windows.h> +#ifndef PATH_MAX +#define PATH_MAX MAX_PATH +#endif +#ifndef _POSIX_PATH_MAX +#define _POSIX_PATH_MAX 256 +#endif + #endif /* unistd.h */