diff options
author | Jon Turney <[email protected]> | 2017-11-10 11:41:13 +0000 |
---|---|---|
committer | Jon Turney <[email protected]> | 2017-11-10 18:20:35 +0000 |
commit | 764f1e4d4509448797008c2b20956b31d8360ef0 (patch) | |
tree | ae3875e7c2b079d0150a84369391faa691b35094 /src/util | |
parent | 854455498c0370e959c0bb25680641e05faea3e2 (diff) |
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]>
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/os_time.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <unistd.h> /* usleep */ # include <time.h> /* timeval */ # include <sys/time.h> /* timeval */ # include <sched.h> /* sched_yield */ |