Use sys_usleep not usleep.
authorJeremy Allison <jra@samba.org>
Thu, 14 Mar 2002 01:05:34 +0000 (01:05 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 14 Mar 2002 01:05:34 +0000 (01:05 +0000)
Jeremy.

source/locking/locking.c

index 1090b0fcbf50f0228c001680b165d2bef6cd059c..7a2e8cf1d74ca47ec477db400376288993c4a05e 100644 (file)
@@ -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;
 }