diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/clock_nanosleep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/clock_nanosleep.c b/sysdeps/unix/clock_nanosleep.c index a4d00d26d0..18d7ac270d 100644 --- a/sysdeps/unix/clock_nanosleep.c +++ b/sysdeps/unix/clock_nanosleep.c @@ -49,7 +49,7 @@ clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *req, assert (sizeof (sec) >= sizeof (now.tv_sec)); /* Get the current time for this clock. */ - if (clock_gettime (clock_id, &now) != 0) + if (__builtin_expect (clock_gettime (clock_id, &now), 0) != 0) return errno; /* Compute the difference. */ |