(__sysconf): If _POSIX_CPUTIME resp. _POSIX_THREAD_CPUTIME is defined
authordrepper <drepper>
Fri, 10 Dec 2004 00:40:46 +0000 (00:40 +0000)
committerdrepper <drepper>
Fri, 10 Dec 2004 00:40:46 +0000 (00:40 +0000)
to 0, return -1 for the corresponding _SC_ argument.

sysdeps/posix/sysconf.c

index 72212fe..cdd1fe9 100644 (file)
@@ -897,7 +897,7 @@ __sysconf (name)
 #endif
 
     case _SC_CPUTIME:
-#ifdef _POSIX_CPUTIME
+#if _POSIX_CPUTIME > 0
       return _POSIX_CPUTIME;
 #else
       return -1;
@@ -1062,7 +1062,7 @@ __sysconf (name)
 #endif
 
     case _SC_THREAD_CPUTIME:
-#ifdef _POSIX_THREAD_CPUTIME
+#if _POSIX_THREAD_CPUTIME > 0
       return _POSIX_THREAD_CPUTIME;
 #else
       return -1;