]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
More glibc-2.1.X compiler fixes (Lionel Ulmer).
authorJulian Seward <jseward@acm.org>
Wed, 24 Apr 2002 02:20:20 +0000 (02:20 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 24 Apr 2002 02:20:20 +0000 (02:20 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@123

coregrind/arch/x86-linux/vg_libpthread.c
coregrind/vg_libpthread.c
vg_libpthread.c

index 76923a3c779a3d9745d1714b1324b6d83134d044..b230c7e5a310851e6b2ab1460e4348f2b5fd39a8 100644 (file)
@@ -164,7 +164,11 @@ int  pthread_attr_getschedparam(const  pthread_attr_t  *attr,
                                 struct sched_param *param)
 {
    kludged("pthread_attr_getschedparam");
+#  ifdef GLIBC_2_1
+   if (param) param->sched_priority = 0; /* who knows */
+#  else
    if (param) param->__sched_priority = 0; /* who knows */
+#  endif
    return 0;
 }
 
@@ -958,6 +962,10 @@ int select ( int n,
 
 #include <sys/poll.h>
 
+#ifdef GLIBC_2_1
+typedef unsigned long int nfds_t;
+#endif
+
 int poll (struct pollfd *__fds, nfds_t __nfds, int __timeout)
 {
    unsigned int        ms_now, ms_end;
index 76923a3c779a3d9745d1714b1324b6d83134d044..b230c7e5a310851e6b2ab1460e4348f2b5fd39a8 100644 (file)
@@ -164,7 +164,11 @@ int  pthread_attr_getschedparam(const  pthread_attr_t  *attr,
                                 struct sched_param *param)
 {
    kludged("pthread_attr_getschedparam");
+#  ifdef GLIBC_2_1
+   if (param) param->sched_priority = 0; /* who knows */
+#  else
    if (param) param->__sched_priority = 0; /* who knows */
+#  endif
    return 0;
 }
 
@@ -958,6 +962,10 @@ int select ( int n,
 
 #include <sys/poll.h>
 
+#ifdef GLIBC_2_1
+typedef unsigned long int nfds_t;
+#endif
+
 int poll (struct pollfd *__fds, nfds_t __nfds, int __timeout)
 {
    unsigned int        ms_now, ms_end;
index 76923a3c779a3d9745d1714b1324b6d83134d044..b230c7e5a310851e6b2ab1460e4348f2b5fd39a8 100644 (file)
@@ -164,7 +164,11 @@ int  pthread_attr_getschedparam(const  pthread_attr_t  *attr,
                                 struct sched_param *param)
 {
    kludged("pthread_attr_getschedparam");
+#  ifdef GLIBC_2_1
+   if (param) param->sched_priority = 0; /* who knows */
+#  else
    if (param) param->__sched_priority = 0; /* who knows */
+#  endif
    return 0;
 }
 
@@ -958,6 +962,10 @@ int select ( int n,
 
 #include <sys/poll.h>
 
+#ifdef GLIBC_2_1
+typedef unsigned long int nfds_t;
+#endif
+
 int poll (struct pollfd *__fds, nfds_t __nfds, int __timeout)
 {
    unsigned int        ms_now, ms_end;