Feature tests for [whether sched_param has a sched_priority member]
and [whether nfds_t is defined].
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@366 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/arch/x86-linux/vg_libpthread.c b/coregrind/arch/x86-linux/vg_libpthread.c
index f090a86..f71eff4 100644
--- a/coregrind/arch/x86-linux/vg_libpthread.c
+++ b/coregrind/arch/x86-linux/vg_libpthread.c
@@ -266,7 +266,7 @@
static int moans = N_MOANS;
if (moans-- > 0)
kludged("pthread_attr_getschedparam");
-# ifdef GLIBC_2_1
+# ifdef HAVE_SCHED_PRIORITY
if (param) param->sched_priority = 0; /* who knows */
# else
if (param) param->__sched_priority = 0; /* who knows */
@@ -840,7 +840,7 @@
if (moans-- > 0)
kludged("pthread_getschedparam");
if (policy) *policy = SCHED_OTHER;
-# ifdef GLIBC_2_1
+# ifdef HAVE_SCHED_PRIORITY
if (param) param->sched_priority = 0; /* who knows */
# else
if (param) param->__sched_priority = 0; /* who knows */
@@ -1877,7 +1877,7 @@
#include <sys/poll.h>
-#ifdef GLIBC_2_1
+#ifndef HAVE_NFDS_T
typedef unsigned long int nfds_t;
#endif
diff --git a/coregrind/vg_libpthread.c b/coregrind/vg_libpthread.c
index f090a86..f71eff4 100644
--- a/coregrind/vg_libpthread.c
+++ b/coregrind/vg_libpthread.c
@@ -266,7 +266,7 @@
static int moans = N_MOANS;
if (moans-- > 0)
kludged("pthread_attr_getschedparam");
-# ifdef GLIBC_2_1
+# ifdef HAVE_SCHED_PRIORITY
if (param) param->sched_priority = 0; /* who knows */
# else
if (param) param->__sched_priority = 0; /* who knows */
@@ -840,7 +840,7 @@
if (moans-- > 0)
kludged("pthread_getschedparam");
if (policy) *policy = SCHED_OTHER;
-# ifdef GLIBC_2_1
+# ifdef HAVE_SCHED_PRIORITY
if (param) param->sched_priority = 0; /* who knows */
# else
if (param) param->__sched_priority = 0; /* who knows */
@@ -1877,7 +1877,7 @@
#include <sys/poll.h>
-#ifdef GLIBC_2_1
+#ifndef HAVE_NFDS_T
typedef unsigned long int nfds_t;
#endif