diff options
| -rw-r--r-- | libc/unistd/sysconf.c | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c index 0dde75102..f595b4173 100644 --- a/libc/unistd/sysconf.c +++ b/libc/unistd/sysconf.c @@ -883,6 +883,13 @@ long int sysconf(int name)  #else        RETURN_NEG_1;  #endif + +    case _SC_MONOTONIC_CLOCK: +      /* Check using the clock_getres system call.  */ +      if (clock_getres(CLOCK_MONOTONIC, NULL) >= 0) +        return _POSIX_VERSION; + +      RETURN_NEG_1;      }  }  libc_hidden_def(sysconf)  | 
