From 734b665b8d4cd9db69800db831a35e3be85f379a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 5 Mar 2002 01:35:54 +0000 Subject: [PATCH] Changed timeslice implementation to use something more portable (thanks to Patrick Stein and his Darwin work for this one). --- platform/unix.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/platform/unix.c b/platform/unix.c index 1f07f93..3227237 100644 --- a/platform/unix.c +++ b/platform/unix.c @@ -309,10 +309,7 @@ char *__PHYSFS_platformCvtToDependent(const char *prepend, /* Much like my college days, try to sleep for 10 milliseconds at a time... */ void __PHYSFS_platformTimeslice(void) { - struct timespec napTime; - napTime.tv_sec = 0; - napTime.tv_nsec = 10 * 1000 * 1000; /* specified in nanoseconds. */ - nanosleep(&napTime, NULL); /* don't care if it fails. */ + usleep( 10 * 1000 ); /* don't care if it fails. */ } /* __PHYSFS_platformTimeslice */