glibc/glibc-cpusetsize.diff
Sascha Peilicke 370e6585ab Accepting request 79227 from Base:System
Fix crash (access-after-free) in dl_lookup_x.  [bnc#703140];mark subpackages as noarch. (forwarded request 79226 from a_jaeger)

OBS-URL: https://build.opensuse.org/request/show/79227
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glibc?expand=0&rev=73
2011-08-18 14:00:14 +00:00

27 lines
960 B
Diff

Index: bits/sched.h
===================================================================
--- bits/sched.h.orig
+++ bits/sched.h
@@ -54,7 +54,7 @@ struct __sched_param
#if defined _SCHED_H && !defined __cpu_set_t_defined
# define __cpu_set_t_defined
/* Size definition for CPU sets. */
-# define __CPU_SETSIZE 1024
+# define __CPU_SETSIZE 4096
# define __NCPUBITS (8 * sizeof (__cpu_mask))
/* Type for array elements in 'cpu_set_t'. */
Index: sysdeps/unix/sysv/linux/bits/sched.h
===================================================================
--- sysdeps/unix/sysv/linux/bits/sched.h.orig
+++ sysdeps/unix/sysv/linux/bits/sched.h
@@ -113,7 +113,7 @@ struct __sched_param
#if defined _SCHED_H && !defined __cpu_set_t_defined
# define __cpu_set_t_defined
/* Size definition for CPU sets. */
-# define __CPU_SETSIZE 1024
+# define __CPU_SETSIZE 4096
# define __NCPUBITS (8 * sizeof (__cpu_mask))
/* Type for array elements in 'cpu_set_t'. */