Index: src/OFThread.m ================================================================== --- src/OFThread.m +++ src/OFThread.m @@ -85,11 +85,10 @@ # import "atomic.h" #endif #ifdef __DJGPP__ # define lrint(x) rint(x) -# define useconds_t unsigned int #endif #ifdef OF_HAVE_THREADS # import "threading.h" @@ -215,11 +214,11 @@ #else if (timeInterval > UINT_MAX) @throw [OFOutOfRangeException exception]; sleep((unsigned int)timeInterval); - usleep((useconds_t)lrint( + usleep((unsigned int)lrint( (timeInterval - floor(timeInterval)) * 1000000)); #endif } + (void)sleepUntilDate: (OFDate *)date