diff --git a/src/unix/fs.c b/src/unix/fs.c index 419961c0..5235d865 100644 --- a/src/unix/fs.c +++ b/src/unix/fs.c @@ -33,6 +33,7 @@ #include #include #include +#include /* PATH_MAX */ #include #include @@ -390,7 +391,7 @@ static ssize_t uv__fs_pathmax_size(const char* path) { #if defined(PATH_MAX) return PATH_MAX; #else - return 4096; +#error "PATH_MAX undefined in the current platform" #endif }