]> git.ipfire.org Git - thirdparty/hostap.git/commit
os_sleep: Use nanosleep for POSIX versions 2008 and higher
authorRosen Penev <rosenp@gmail.com>
Sat, 24 Aug 2019 22:01:16 +0000 (15:01 -0700)
committerJouni Malinen <j@w1.fi>
Mon, 9 Sep 2019 13:45:40 +0000 (16:45 +0300)
commit39042d7f7c4997af55474ebe4513c81f00732837
treeac51bbfc6055c2d832dff8a25f2deaf323a15337
parenta69742c2f8f7cf5ceceec4dc1dcf021e58515e16
os_sleep: Use nanosleep for POSIX versions 2008 and higher

uClibc-ng optionally disabled deprecated POSIX functions like usleep,
causing compilation failures. This switches to nanosleep while retaining
support for older libcs that do not support nanosleep.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
src/utils/os_internal.c
src/utils/os_unix.c