1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-04-25 11:41:18 +00:00

Eliminate CENV_SYSF_NANOSLEEP and use HAVE_NANOSLEEP instead

This commit is contained in:
Olaf Seibert
2016-01-21 00:42:41 +01:00
parent 2b48b63e74
commit 14ba9636cd
3 changed files with 4 additions and 8 deletions

View File

@@ -1228,7 +1228,7 @@ os_v2rt_idle(ossighandler_t *hdlarg)
void
os_sleep(int secs)
{
#if CENV_SYSF_NANOSLEEP
#if HAVE_NANOSLEEP
osstm_t stm;
OS_STM_SET(stm, secs);
@@ -1284,7 +1284,7 @@ os_sleep(int secs)
int
os_msleep(osstm_t *stm)
{
#if CENV_SYSF_NANOSLEEP
#if HAVE_NANOSLEEP
if (nanosleep(stm, stm) == 0) {
stm->tv_sec = 0; /* Make sure returns zero */