diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2007-12-28 19:51:24 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2007-12-28 19:51:24 +0000 |
commit | 2630adf92a5443c89a533fed32e912a9ca86e6f0 (patch) | |
tree | 35fe66ad70bb8d53e25bd4dbc0f3ab4a991c1dd1 /toolchain/uClibc/patches/002-conditional_sched_affinity.patch | |
parent | c3965d1fb081f68631f91f51a270dfbea561888b (diff) | |
download | upstream-2630adf92a5443c89a533fed32e912a9ca86e6f0.tar.gz upstream-2630adf92a5443c89a533fed32e912a9ca86e6f0.tar.bz2 upstream-2630adf92a5443c89a533fed32e912a9ca86e6f0.zip |
upgrade to uClibc 0.9.29 - break binary compatibility #1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10010 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/uClibc/patches/002-conditional_sched_affinity.patch')
-rw-r--r-- | toolchain/uClibc/patches/002-conditional_sched_affinity.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches/002-conditional_sched_affinity.patch b/toolchain/uClibc/patches/002-conditional_sched_affinity.patch new file mode 100644 index 0000000000..509c42af52 --- /dev/null +++ b/toolchain/uClibc/patches/002-conditional_sched_affinity.patch @@ -0,0 +1,53 @@ +diff -ur uClibc-0.9.29/libc/sysdeps/linux/common/sched_getaffinity.c uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_getaffinity.c +--- uClibc-0.9.29/libc/sysdeps/linux/common/sched_getaffinity.c 2007-02-12 16:52:32.000000000 -0600 ++++ uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_getaffinity.c 2007-05-09 18:05:09.397411811 -0500 +@@ -29,6 +29,7 @@ + #include <sys/param.h> + #include <sys/types.h> + ++#ifdef __NR_sched_getaffinity + libc_hidden_proto(memset) + + #define __NR___syscall_sched_getaffinity __NR_sched_getaffinity +@@ -48,5 +49,15 @@ + } + return res; + } ++#else ++/* ++int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *cpuset) ++{ ++ __set_errno(ENOSYS); ++ return -1; ++} ++*/ + #endif + #endif ++ ++#endif +diff -ur uClibc-0.9.29/libc/sysdeps/linux/common/sched_setaffinity.c uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_setaffinity.c +--- uClibc-0.9.29/libc/sysdeps/linux/common/sched_setaffinity.c 2007-02-12 16:52:32.000000000 -0600 ++++ uClibc-0.9.29-patched/libc/sysdeps/linux/common/sched_setaffinity.c 2007-05-09 18:05:09.397411811 -0500 +@@ -31,6 +31,7 @@ + #include <sys/types.h> + #include <alloca.h> + ++#ifdef __NR_sched_setaffinity + libc_hidden_proto(getpid) + + #define __NR___syscall_sched_setaffinity __NR_sched_setaffinity +@@ -74,5 +75,14 @@ + + return INLINE_SYSCALL (sched_setaffinity, 3, pid, cpusetsize, cpuset); + } ++#else ++/* ++int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset) ++{ ++ __set_errno(ENOSYS); ++ return -1; ++} ++*/ ++#endif + #endif + #endif |