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  */