aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/aio_notify.c
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2012-10-29 19:35:09 +0100
committerPino Toscano <toscano.pino@tiscali.it>2012-10-29 19:35:09 +0100
commit8bece75210704b1c667087f9c2b71af64a68cb53 (patch)
treedde4b300ed84208c67c9b771972c5cb2f60d7d62 /sysdeps/pthread/aio_notify.c
parentd11260f86a64a634f5a3ad9939f6e8ce30442460 (diff)
downloadglibc-8bece75210704b1c667087f9c2b71af64a68cb53.tar
glibc-8bece75210704b1c667087f9c2b71af64a68cb53.tar.gz
glibc-8bece75210704b1c667087f9c2b71af64a68cb53.tar.bz2
glibc-8bece75210704b1c667087f9c2b71af64a68cb53.zip
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).
Diffstat (limited to 'sysdeps/pthread/aio_notify.c')
-rw-r--r--sysdeps/pthread/aio_notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/pthread/aio_notify.c b/sysdeps/pthread/aio_notify.c
index f8c4ccc96e..a9f0648c21 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