Fix a compilation error.

This regression was introduced by
1b0e4abbfd (Port mq_get() to MinGW.).
This commit is contained in:
Jason Evans 2015-07-22 15:49:34 -07:00
parent e42c309eba
commit e475ff1600

View File

@ -13,6 +13,7 @@ mq_nanosleep(unsigned ns)
#ifdef _WIN32
Sleep(ns / 1000);
#else
{
struct timespec timeout;
if (ns < 1000*1000*1000) {
@ -23,5 +24,6 @@ mq_nanosleep(unsigned ns)
timeout.tv_nsec = 0;
}
nanosleep(&timeout, NULL);
}
#endif
}