1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-04-26 12:06:54 +00:00

Replace CENV_SYSF_BSDTIMEVAL with HAVE_SETITIMER and HAVE_GETTIMEOFDAY

This commit is contained in:
Olaf Seibert
2016-01-21 19:52:40 +01:00
parent 14ba9636cd
commit e3e86227de
6 changed files with 24 additions and 20 deletions

View File

@@ -1386,7 +1386,7 @@ quant_freeze(int32 qc)
** don't report runtime in a monotonically increasing way.
** See os_vrtmget() for more detail.
*/
#if CENV_SYSF_BSDTIMEVAL
#if HAVE_SETITIMER
if (rtm.tv_sec < 0 || rtm.tv_usec < 0) {
# if 0 /* Disable output for now. Perhaps bump a meter later */
fprintf(stderr, "[Neg quantum! %ld,%ld]\r\n",
@@ -1394,7 +1394,7 @@ quant_freeze(int32 qc)
# endif
return qc;
}
#endif /* CENV_SYSF_BSDTIMEVAL */
#endif /* HAVE_SETITIMER */
return qc + (int32)os_rtm_toqct(&rtm); /* Convert to quantum ticks! */
}