Using usleep() instead of nanosleep() which is not available on Solaris 9

This commit is contained in:
Thomas Schmitt 2011-01-18 16:28:57 +00:00
parent 0d426a755f
commit d5ae5ebf6c
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.01.16.140456"
#define Cdrskin_timestamP "2011.01.18.162859"

View File

@ -211,9 +211,10 @@ struct burn_source *burn_fd_source_new(int datafd, int subfd, off_t size)
static int fifo_sleep(int flag)
{
static struct timespec sleeptime = { 0, 50000000}; /* 50 ms */
static unsigned long sleeptime = 50000; /* 50 ms */
return nanosleep(&sleeptime, NULL);
usleep(sleeptime);
return 0;
}