summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Graf <sebastian.graf@kit.edu>2021-02-25 11:20:57 +0100
committerSebastian Graf <sebastian.graf@kit.edu>2021-02-25 11:20:57 +0100
commit24c3fc1c70c1a8655bbc4678a0e9184b67958c5f (patch)
treebae7c41ddffb9b7aba552a5ffe7ae75c881db9fa
parent10e115d39d6062151cc95256fee052b197a46186 (diff)
downloadhaskell-wip/T19431.tar.gz
Include time.h in conc059_c (#19431)wip/T19431
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);