From 764f1e4d4509448797008c2b20956b31d8360ef0 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 10 Nov 2017 11:41:13 +0000 Subject: [PATCH] util: include unistd.h, which may be required for usleep prototype MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This seems to be dropped in 222a2fb9 "util: move os_time.[ch] to src/util" ../../../src/util/os_time.c: In function ‘os_time_sleep’: ../../../src/util/os_time.c:104:4: error: implicit declaration of function ‘usleep’ [-Werror=implicit-function-declaration] Signed-off-by: Jon Turney Reviewed-by: Nicolai Hähnle --- src/util/os_time.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/os_time.c b/src/util/os_time.c index 8d8291ff173..72dc7e49c0e 100644 --- a/src/util/os_time.c +++ b/src/util/os_time.c @@ -40,6 +40,7 @@ #include "util/u_atomic.h" #if defined(PIPE_OS_UNIX) +# include /* usleep */ # include /* timeval */ # include /* timeval */ # include /* sched_yield */ -- 2.30.2