summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Graf <sebastian.graf@kit.edu>2021-02-25 11:20:57 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-27 08:02:39 -0500
commit7d8f7d969c6e552738260418a504724ac9ffa7c7 (patch)
treeb29cef5984e0fc00abdb8133666c901ba23b3626
parent31ee48dc64066d9f6fb66ac987ccc4ac290cb8b7 (diff)
downloadhaskell-7d8f7d969c6e552738260418a504724ac9ffa7c7.tar.gz
Include time.h in conc059_c (#19431)
The test probably could have used `usleep` from `unistd.h` instead, but this seemed like the simplest solution. Fixes #19431.
-rw-r--r--testsuite/tests/concurrent/should_run/conc059_c.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/conc059_c.c b/testsuite/tests/concurrent/should_run/conc059_c.c
index 98ac85ecf3..58cb595073 100644
--- a/testsuite/tests/concurrent/should_run/conc059_c.c
+++ b/testsuite/tests/concurrent/should_run/conc059_c.c
@@ -7,6 +7,8 @@
#include <stdio.h>
#if mingw32_HOST_OS
#include <windows.h>
+#else
+#include <time.h> // nanosleep
#endif
void millisleep(int milliseconds);