From: Jon Turney Date: Fri, 10 Nov 2017 11:41:13 +0000 (+0000) Subject: util: include unistd.h, which may be required for usleep prototype X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=764f1e4d4509448797008c2b20956b31d8360ef0;p=mesa.git util: include unistd.h, which may be required for usleep prototype 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 --- 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 */