summaryrefslogtreecommitdiff
path: root/rts/RtsUtils.h
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-01-22 19:09:49 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-11 05:08:47 -0500
commite319570ec141e0f63d82d23b88a40f96fc0b7105 (patch)
treef74ccb5c51ba9a1489d89e6ae6355c2033cbc6e1 /rts/RtsUtils.h
parentde32beffde82eec954691703541a2d4081799453 (diff)
downloadhaskell-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.h1
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);