diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2024-06-09 09:23:49 +0200 |
---|---|---|
committer | Charlie Gordon <github@chqrlie.org> | 2024-07-21 10:24:01 +0200 |
commit | 012451d5f3c8e88457e0c37b30f997d9d5b0782f (patch) | |
tree | 2c413fe9339436e1019c8aa7a6d7d90e8fb82233 /quickjs-libc.c | |
parent | 8624b5c6f089f9efd3569ff47b82d58ccb034dfe (diff) | |
download | quickjs-012451d5f3c8e88457e0c37b30f997d9d5b0782f.tar.gz quickjs-012451d5f3c8e88457e0c37b30f997d9d5b0782f.zip |
Define a fallback PATH_MAX if not available
PATH_MAX is optional in POSIX, and it is not available on GNU/Hurd.
While it could be possible to not rely on PATH_MAX, for now provide a
fallback definition (which should be safe enough) to get quickjs built
on GNU/Hurd.
Diffstat (limited to 'quickjs-libc.c')
-rw-r--r-- | quickjs-libc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quickjs-libc.c b/quickjs-libc.c index 40482a5..141f79f 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 */ |