mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-03 07:45:47 +00:00
Add missing #ifdef HAVE_CLOCK_GETTIME in getentropy_fallback()
From Tim Rice
This commit is contained in:
@@ -503,6 +503,7 @@ getentropy_fallback(void *buf, size_t len)
|
|||||||
/ pgs);
|
/ pgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_CLOCK_GETTIME
|
||||||
/* Check cnts and times... */
|
/* Check cnts and times... */
|
||||||
for (ii = 0; ii < sizeof(cl)/sizeof(cl[0]);
|
for (ii = 0; ii < sizeof(cl)/sizeof(cl[0]);
|
||||||
ii++) {
|
ii++) {
|
||||||
@@ -511,6 +512,7 @@ getentropy_fallback(void *buf, size_t len)
|
|||||||
if (e != -1)
|
if (e != -1)
|
||||||
cnt += (int)ts.tv_nsec;
|
cnt += (int)ts.tv_nsec;
|
||||||
}
|
}
|
||||||
|
#endif /* HAVE_CLOCK_GETTIME */
|
||||||
|
|
||||||
HX((e = getrusage(RUSAGE_SELF,
|
HX((e = getrusage(RUSAGE_SELF,
|
||||||
&ru)) == -1, ru);
|
&ru)) == -1, ru);
|
||||||
|
Reference in New Issue
Block a user