diff --git a/quickjs-libc.c b/quickjs-libc.c index 40482a50c..141f79f3c 100644 --- a/quickjs-libc.c +++ b/quickjs-libc.c @@ -78,6 +78,10 @@ typedef sig_t sighandler_t; #include "list.h" #include "quickjs-libc.h" +#if !defined(PATH_MAX) +#define PATH_MAX 4096 +#endif + /* TODO: - add socket calls */