fix macOS/Linux build

This commit is contained in:
Martins Mozeiko
2017-11-12 15:59:03 -08:00
parent 2194d5b74b
commit 5a86f84196
+1 -1
View File
@@ -199,7 +199,7 @@ sys_file sys_open(const char* fname, uint64_t* size)
int fd = open(fname, O_RDONLY);
if (fd < 0)
{
error("ERROR: cannot open '%s' file\n", fname);
sys_error("ERROR: cannot open '%s' file\n", fname);
}
struct stat st;