mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
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 <jon.turney@dronecode.org.uk>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
854455498c
commit
764f1e4d45
1 changed files with 1 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue