Skip to content

Commit 6894fe3

Browse files
committed
squash! fixups for arm64 windows
1 parent 193e2b1 commit 6894fe3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

quickjs-libc.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@
6868
#include <grp.h>
6969
#endif
7070

71+
#ifndef S_IFBLK
72+
#define S_IFBLK 0
73+
#endif
74+
75+
#ifndef S_IFIFO
76+
#define S_IFIFO 0
77+
#endif
78+
7179
#if defined(__APPLE__)
7280
typedef sig_t sighandler_t;
7381
#include <crt_externs.h>
@@ -3075,7 +3083,7 @@ static JSValue js_os_sleep(JSContext *ctx, JSValueConst this_val,
30753083
#if defined(_WIN32)
30763084
static char *realpath(const char *path, char *buf)
30773085
{
3078-
if (!_fullpath(buf, path, PATH_MAX)) {
3086+
if (!_fullpath(buf, path, JS__PATH_MAX)) {
30793087
errno = ENOENT;
30803088
return NULL;
30813089
} else {

0 commit comments

Comments
 (0)