From d8201c007ade4ed4dda0b871e5bba72357e845a6 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 20 Jul 2014 15:38:33 +0200 Subject: [PATCH] Add sysconf(_SC_MONOTONIC_CLOCK). --- libc/unistd/sysconf.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/unistd/sysconf.cpp b/libc/unistd/sysconf.cpp index d1e23c77..78005bda 100644 --- a/libc/unistd/sysconf.cpp +++ b/libc/unistd/sysconf.cpp @@ -38,6 +38,7 @@ extern "C" long sysconf(int name) case _SC_RTSIG_MAX: return (SIGRTMAX+1) - SIGRTMIN; case _SC_GETGR_R_SIZE_MAX: return -1; case _SC_GETPW_R_SIZE_MAX: return -1; + case _SC_MONOTONIC_CLOCK: return _POSIX_MONOTONIC_CLOCK; default: fprintf(stderr, "%s:%u warning: %s(%i) is unsupported\n", __FILE__, __LINE__, __func__, name);