diff --git a/source/locking/locking.c b/source/locking/locking.c index 1090b0fcbf5..7a2e8cf1d74 100644 --- a/source/locking/locking.c +++ b/source/locking/locking.c @@ -164,7 +164,7 @@ NTSTATUS do_lock_spin(files_struct *fsp,connection_struct *conn, uint16 lock_pid !NT_STATUS_EQUAL(status, NT_STATUS_FILE_LOCK_CONFLICT)) break; if (sleeptime) - usleep(sleeptime); + sys_usleep(sleeptime); } return status; }