Skip to content

Commit

Permalink
Missing CLOCK_MONOTONIC case
Browse files Browse the repository at this point in the history
  • Loading branch information
MedourMehdi committed Oct 6, 2024
1 parent 6f213d7 commit b0b43f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posix/clock_nanosleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ __clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *req, st
else if (__builtin_expect (flags, 0) != 0){
return EINVAL;
}
else if (clock_id != CLOCK_REALTIME){
else if ((clock_id != CLOCK_REALTIME) && clock_id != CLOCK_MONOTONIC){
/* Not supported. */
return ENOTSUP;
}
Expand Down

0 comments on commit b0b43f4

Please sign in to comment.