diff options
author | Jason Evans <jasone@canonware.com> | 2015-07-22 22:49:34 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2015-07-22 22:49:34 (GMT) |
commit | e475ff16004d9a7c76a01a71e6a52323e6bf1485 (patch) | |
tree | 9bb1a6323e3db2e207b254577554b5b59eadeebb /test | |
parent | e42c309eba6c5084dc0abda9b211e91e2c548fdf (diff) | |
download | jemalloc-e475ff16004d9a7c76a01a71e6a52323e6bf1485.zip jemalloc-e475ff16004d9a7c76a01a71e6a52323e6bf1485.tar.gz jemalloc-e475ff16004d9a7c76a01a71e6a52323e6bf1485.tar.bz2 |
Fix a compilation error.
This regression was introduced by
1b0e4abbfdbcc1c1a71d1f617adb19951109bfce (Port mq_get() to MinGW.).
Diffstat (limited to 'test')
-rw-r--r-- | test/src/mq.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/test/src/mq.c b/test/src/mq.c index d337724..40b31c1 100644 --- a/test/src/mq.c +++ b/test/src/mq.c @@ -13,15 +13,17 @@ mq_nanosleep(unsigned ns) #ifdef _WIN32 Sleep(ns / 1000); #else - struct timespec timeout; + { + struct timespec timeout; - if (ns < 1000*1000*1000) { - timeout.tv_sec = 0; - timeout.tv_nsec = ns; - } else { - timeout.tv_sec = 1; - timeout.tv_nsec = 0; + if (ns < 1000*1000*1000) { + timeout.tv_sec = 0; + timeout.tv_nsec = ns; + } else { + timeout.tv_sec = 1; + timeout.tv_nsec = 0; + } + nanosleep(&timeout, NULL); } - nanosleep(&timeout, NULL); #endif } |