OSDN Git Service

Joseph S. Myers writes:
authorMike Frysinger <vapier@gentoo.org>
Tue, 3 Jan 2006 05:13:16 +0000 (05:13 -0000)
committerMike Frysinger <vapier@gentoo.org>
Tue, 3 Jan 2006 05:13:16 +0000 (05:13 -0000)
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

libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h

index f7efc88..0bf7fc5 100644 (file)
@@ -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;