1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

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).
This commit is contained in:
Pino Toscano
2012-10-29 19:35:09 +01:00
parent d11260f86a
commit 8bece75210
2 changed files with 7 additions and 1 deletions

View File

@ -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