Module: Mesa Branch: master Commit: 764f1e4d4509448797008c2b20956b31d8360ef0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=764f1e4d4509448797008c2b20956b31d8360ef0
Author: Jon Turney <[email protected]> Date: Fri Nov 10 11:41:13 2017 +0000 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 <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> --- 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 8d8291ff17..72dc7e49c0 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 <unistd.h> /* usleep */ # include <time.h> /* timeval */ # include <sys/time.h> /* timeval */ # include <sched.h> /* sched_yield */ _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
