]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: sysconf: belatedly add correct return value for _SC_DELAYTIMER_MAX
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 2 Mar 2022 20:54:54 +0000 (21:54 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 2 Mar 2022 21:02:44 +0000 (22:02 +0100)
When adding the timer_getoverrun function, DELAYTIMER_MAX was added
to limits.h, but the return value of sysconf(_SC_DELAYTIMER_MAX) wasn't
changed accordingly.  Fix that now.

Fixes: 9e295a8d193e ("Cygwin: posix timers: implement timer_getoverrun")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/sysconf.cc

index dfd8b33b1511f3cd8ed27c56025381eebbdbc8bb..0aa63dd1415cd5aca416974cc7dd148ee960f41b 100644 (file)
@@ -522,7 +522,7 @@ static struct
   {cons, {c:AIO_LISTIO_MAX}},          /*  34, _SC_AIO_LISTIO_MAX */
   {cons, {c:AIO_MAX}},                 /*  35, _SC_AIO_MAX */
   {cons, {c:AIO_PRIO_DELTA_MAX}},      /*  36, _SC_AIO_PRIO_DELTA_MAX */
-  {nsup, {c:0}},                       /*  37, _SC_DELAYTIMER_MAX */
+  {cons, {c:DELAYTIMER_MAX}},          /*  37, _SC_DELAYTIMER_MAX */
   {cons, {c:PTHREAD_KEYS_MAX}},                /*  38, _SC_THREAD_KEYS_MAX */
   {cons, {c:PTHREAD_STACK_MIN}},       /*  39, _SC_THREAD_STACK_MIN */
   {cons, {c:-1L}},                     /*  40, _SC_THREAD_THREADS_MAX */
This page took 0.033935 seconds and 5 git commands to generate.