summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads.old
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-03 05:13:16 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-03 05:13:16 +0000
commitbe06fd35cbfa9f4284de60ff22780ba1d2f060a4 (patch)
tree4f406523b5776c280246fe06f21ab4f5b5b1951d /libpthread/linuxthreads.old
parent6f65ac296a885b9364016046e1c0160dfef812b1 (diff)
Joseph S. Myers writes:
This patch fixes the build of libpthread for MIPS. The definition of _test_and_set uses __THROW after the prototype: but attributes are only accepted after the prototype in function declarations which aren't definitions, not between the prototype and the function body in a definition. The proper macro to use here is __NTH (placing the attribute before the prototype). glibc does the same thing, so this is also a sync up with glibc
Diffstat (limited to 'libpthread/linuxthreads.old')
-rw-r--r--libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h b/libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h
index f7efc881d..0bf7fc5b0 100644
--- a/libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h
+++ b/libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h
@@ -30,7 +30,7 @@
This file is part of the GNU C Library.
Contributed by Maciej W. Rozycki <macro@ds2.pg.gda.pl>, 2000. */
static inline int
-_test_and_set (int *p, int v) __THROW
+__NTH (_test_and_set (int *p, int v))
{
int r, t;