summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sysdeps/unix/sysv/linux/smp.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/smp.h')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/smp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/smp.h b/libpthread/nptl/sysdeps/unix/sysv/linux/smp.h
index 41fa97ff4..fbe16bacd 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/smp.h
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/smp.h
@@ -34,7 +34,11 @@ is_smp_system (void)
size_t reslen = sizeof (buf);
/* Try reading the number using `sysctl' first. */
+#ifdef __UCLIBC__
if (sysctl ((int *) sysctl_args,
+#else
+ if (__sysctl ((int *) sysctl_args,
+#endif
sizeof (sysctl_args) / sizeof (sysctl_args[0]),
buf, &reslen, NULL, 0) < 0)
{