mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-18 20:31:40 +03:00
linux problem
This commit is contained in:
parent
b1b55a6065
commit
9c1f3a0ef8
8
v/sist.c
8
v/sist.c
@ -77,7 +77,15 @@ u3_sist_pack(c3_w tem_w, c3_w typ_w, c3_w* bob_w, c3_w len_w)
|
||||
// Sync. Or, what goes by sync.
|
||||
{
|
||||
fsync(lug_u->fid_i); // fsync is almost useless, F_FULLFSYNC too slow
|
||||
#if defined(U2_OS_linux)
|
||||
fdatasync(lug_u->fid_i);
|
||||
#elif defined(U2_OS_osx)
|
||||
fcntl(lug_u->fid_i, F_FULLFSYNC);
|
||||
#elif defined(U2_OS_bsd)
|
||||
fsync(lug_u->fid_i);
|
||||
#else
|
||||
# error "port: datasync"
|
||||
#endif
|
||||
}
|
||||
|
||||
return u3A->ent_d;
|
||||
|
Loading…
Reference in New Issue
Block a user