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

1.0.2
Thomas Schmitt 12 years ago
parent 0a714850d7
commit 2b07bd0632
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 5
      libburn/file.c

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

@ -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;
}

Loading…
Cancel
Save