From: Pino Toscano Date: Mon, 29 Oct 2012 18:35:09 +0000 (+0100) Subject: aio_notify: fix _POSIX_REALTIME_SIGNALS check X-Git-Tag: upstream/2.16.90~336^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bece75210704b1c667087f9c2b71af64a68cb53;p=platform%2Fupstream%2Fglibc.git aio_notify: fix _POSIX_REALTIME_SIGNALS check Check that _POSIX_REALTIME_SIGNALS is greater than zero to assume realtime signals are supported, instead of any non-zero value (including -1). --- diff --git a/ChangeLog b/ChangeLog index a70fadc..0cfa229 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-10-29 Pino Toscano + + * sysdeps/pthread/aio_notify.c (__aio_notify_only) + [_POSIX_REALTIME_SIGNALS]: Change condition to + [_POSIX_REALTIME_SIGNALS > 0]. + 2012-10-27 Andreas Jaeger * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE) diff --git a/sysdeps/pthread/aio_notify.c b/sysdeps/pthread/aio_notify.c index f8c4ccc..a9f0648 100644 --- a/sysdeps/pthread/aio_notify.c +++ b/sysdeps/pthread/aio_notify.c @@ -95,7 +95,7 @@ __aio_notify_only (struct sigevent *sigev) else if (sigev->sigev_notify == SIGEV_SIGNAL) { /* We have to send a signal. */ -#if _POSIX_REALTIME_SIGNALS +#if _POSIX_REALTIME_SIGNALS > 0 /* Note that the standard gives us the option of using a plain non-queuing signal here when SA_SIGINFO is not set for the signal. */ # ifdef BROKEN_THREAD_SIGNALS