[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r5042 - glibc-package/trunk/debian/patches/hurd-i386



Author: sthibault
Date: 2011-11-26 15:40:07 +0000 (Sat, 26 Nov 2011)
New Revision: 5042

Modified:
   glibc-package/trunk/debian/patches/hurd-i386/local-clock_gettime_MONOTONIC.diff
Log:
Make sysconf not return -1 all the time...

Modified: glibc-package/trunk/debian/patches/hurd-i386/local-clock_gettime_MONOTONIC.diff
===================================================================
--- glibc-package/trunk/debian/patches/hurd-i386/local-clock_gettime_MONOTONIC.diff	2011-11-26 10:20:34 UTC (rev 5041)
+++ glibc-package/trunk/debian/patches/hurd-i386/local-clock_gettime_MONOTONIC.diff	2011-11-26 15:40:07 UTC (rev 5042)
@@ -3,8 +3,9 @@
 the iceweasel stack.
 
 ---
- clock_gettime.c |    1 +
- 1 file changed, 1 insertion(+)
+ posix/sysconf.c      |    2 +-
+ unix/clock_gettime.c |    1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
 diff --git a/sysdeps/unix/clock_gettime.c b/sysdeps/unix/clock_gettime.c
 index d467f2b..fcf892a 100644
 --- a/sysdeps/unix/clock_gettime.c
@@ -17,3 +18,16 @@
      case CLOCK_REALTIME:
        {
  	struct timeval tv;
+diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
+index e734fdd..a1d3c98 100644
+--- a/sysdeps/posix/sysconf.c
++++ b/sysdeps/posix/sysconf.c
+@@ -989,7 +989,7 @@ __sysconf (name)
+ #endif
+ 
+     case _SC_MONOTONIC_CLOCK:
+-#if _POSIX_MONOTONIC_CLOCK
++#if _POSIX_MONOTONIC_CLOCK > 0
+       return _POSIX_MONOTONIC_CLOCK;
+ #else
+       return -1;


Reply to: