fix compile without syscall (pr #714 by asuka-mio)

This commit is contained in:
Daan Leijen 2023-03-30 09:24:06 -07:00
parent 47d8cd916e
commit 8607c4a5df
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ static int mi_prim_access(const char *fpath, int mode) {
#elif !defined(__APPLE__) // avoid unused warnings
static int mi_prim_open(const char* fpath, int open_flags) {
return open(fpath,open_flags,mode);
return open(fpath,open_flags);
}
static ssize_t mi_prim_read(int fd, void* buf, size_t bufsize) {
return read(fd,buf,bufsize);