[Mesa-dev] [Bug 103671] os_time.c:104:4: error: implicit declaration of function 'usleep' is invalid in C99

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Nov 10 18:33:01 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103671

Vinson Lee <vlee at freedesktop.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Vinson Lee <vlee at freedesktop.org> ---
commit 764f1e4d4509448797008c2b20956b31d8360ef0
Author: Jon Turney <jon.turney at dronecode.org.uk>
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 <jon.turney at dronecode.org.uk>
    Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171110/7e5fed5b/attachment.html>


More information about the mesa-dev mailing list