diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-01-22 19:09:49 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-02-11 05:08:47 -0500 |
commit | e319570ec141e0f63d82d23b88a40f96fc0b7105 (patch) | |
tree | f74ccb5c51ba9a1489d89e6ae6355c2033cbc6e1 /rts/RtsUtils.h | |
parent | de32beffde82eec954691703541a2d4081799453 (diff) | |
download | haskell-e319570ec141e0f63d82d23b88a40f96fc0b7105.tar.gz |
rts: Use nanosleep instead of usleep
usleep was removed in POSIX.1-2008.
Diffstat (limited to 'rts/RtsUtils.h')
-rw-r--r-- | rts/RtsUtils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/RtsUtils.h b/rts/RtsUtils.h index 5c986fe4a2..c87aedb3a7 100644 --- a/rts/RtsUtils.h +++ b/rts/RtsUtils.h @@ -33,6 +33,7 @@ void stgFree(void* p); * Misc other utilities * -------------------------------------------------------------------------- */ +int rtsSleep(Time t); char *time_str(void); char *showStgWord64(StgWord64, char *, bool); |