From e4871eb8dbd76df2fa062120a029702551b2763e Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Sat, 20 Mar 2004 06:43:04 +0000 Subject: Update. 2004-03-20 Andreas Jaeger * sysdeps/unix/sysv/linux/sched_getaffinity.c (__sched_getaffinity_old): Fix interface. * sysdeps/unix/sysv/linux/sched_setaffinity.c (__sched_setaffinity_old): Likewise. * sysdeps/unix/sysv/linux/sched_setaffinity.c: Include . --- sysdeps/unix/sysv/linux/sched_setaffinity.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/sysv') diff --git a/sysdeps/unix/sysv/linux/sched_setaffinity.c b/sysdeps/unix/sysv/linux/sched_setaffinity.c index 0e2d5b55e8..457dacd7b4 100644 --- a/sysdeps/unix/sysv/linux/sched_setaffinity.c +++ b/sysdeps/unix/sysv/linux/sched_setaffinity.c @@ -23,6 +23,7 @@ #include #include #include +#include #ifdef __NR_sched_setaffinity @@ -72,10 +73,10 @@ versioned_symbol (libc, __sched_setaffinity_new, sched_setaffinity, # if SHLIB_COMPAT(libc, 2_3_3, 2_3_4) int attribute_compat_text_section -__sched_setaffinity_old (const pthread_attr_t *attr, const cpu_set_t *cpuset) +__sched_setaffinity_old (pid_t pid, const cpu_set_t *cpuset) { /* The old interface by default assumed a 1024 processor bitmap. */ - return __sched_setaffinity_new (attr, 128, cpuset); + return __sched_setaffinity_new (pid, 128, cpuset); } compat_symbol (libc, __sched_setaffinity_old, sched_setaffinity, GLIBC_2_3_3); # endif -- cgit v1.2.3