mirror of
https://github.com/bellard/quickjs.git
synced 2024-12-12 09:44:33 +08:00
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.
This commit is contained in:
parent
8624b5c6f0
commit
012451d5f3
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user