util: include unistd.h, which may be required for usleep prototype
authorJon Turney <jon.turney@dronecode.org.uk>
Fri, 10 Nov 2017 11:41:13 +0000 (11:41 +0000)
committerJon Turney <jon.turney@dronecode.org.uk>
Fri, 10 Nov 2017 18:20:35 +0000 (18:20 +0000)
commit764f1e4d4509448797008c2b20956b31d8360ef0
treeae3875e7c2b079d0150a84369391faa691b35094
parent854455498c0370e959c0bb25680641e05faea3e2
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>
src/util/os_time.c