This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

sched_[gs]et_affinity: bad version names in SHLIB_COMPAT


Version names are supposed to have GLIBC_ prepended to them for the
SHLIB_COMPAT test to work.  This patch fixes it.  Ok to install?

Index: ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* sysdeps/unix/sysv/linux/sched_getaffinity.c: Prepend GLIBC_ to
	version names is SHLIB_COMPAT check.
	* sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.

Index: sysdeps/unix/sysv/linux/sched_getaffinity.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/sched_getaffinity.c,v
retrieving revision 1.3
diff -u -p -r1.3 sched_getaffinity.c
--- sysdeps/unix/sysv/linux/sched_getaffinity.c 20 Mar 2004 06:42:17 -0000 1.3
+++ sysdeps/unix/sysv/linux/sched_getaffinity.c 29 Mar 2004 20:00:52 -0000
@@ -43,7 +43,7 @@ versioned_symbol (libc, __sched_getaffin
 		  GLIBC_2_3_4);
 
 
-# if SHLIB_COMPAT(libc, 2_3_3, 2_3_4)
+# if SHLIB_COMPAT(libc, GLIBC_2_3_3, GLIBC_2_3_4)
 int
 attribute_compat_text_section
 __sched_getaffinity_old (pid_t pid, cpu_set_t *cpuset)
Index: sysdeps/unix/sysv/linux/sched_setaffinity.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/unix/sysv/linux/sched_setaffinity.c,v
retrieving revision 1.3
diff -u -p -r1.3 sched_setaffinity.c
--- sysdeps/unix/sysv/linux/sched_setaffinity.c 20 Mar 2004 06:42:37 -0000 1.3
+++ sysdeps/unix/sysv/linux/sched_setaffinity.c 29 Mar 2004 20:00:52 -0000
@@ -70,7 +70,7 @@ versioned_symbol (libc, __sched_setaffin
 		  GLIBC_2_3_4);
 
 
-# if SHLIB_COMPAT(libc, 2_3_3, 2_3_4)
+# if SHLIB_COMPAT(libc, GLIBC_2_3_3, GLIBC_2_3_4)
 int
 attribute_compat_text_section
 __sched_setaffinity_old (pid_t pid, const cpu_set_t *cpuset)
-- 
Alexandre Oliva             http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]