From 24c3fc1c70c1a8655bbc4678a0e9184b67958c5f Mon Sep 17 00:00:00 2001 From: Sebastian Graf Date: Thu, 25 Feb 2021 11:20:57 +0100 Subject: 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. --- testsuite/tests/concurrent/should_run/conc059_c.c | 2 ++ 1 file changed, 2 insertions(+) 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 #if mingw32_HOST_OS #include +#else +#include // nanosleep #endif void millisleep(int milliseconds); -- cgit v1.2.1