summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/testrtsig.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/testrtsig.h')
-rw-r--r--sysdeps/unix/sysv/linux/testrtsig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/testrtsig.h b/sysdeps/unix/sysv/linux/testrtsig.h
index 7256d71227..7c41877e66 100644
--- a/sysdeps/unix/sysv/linux/testrtsig.h
+++ b/sysdeps/unix/sysv/linux/testrtsig.h
@@ -21,10 +21,10 @@
#include <string.h>
#include <sys/utsname.h>
-int
+static int
kernel_has_rtsig (void)
{
struct utsname name;
- return uname (&name) < 0 || __strverscmp (name.release, "2.1.70") >= 0;
+ return uname (&name) == 0 && __strverscmp (name.release, "2.1.70") >= 0;
}