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)
commitbe06fd35cbfa9f4284de60ff22780ba1d2f060a4
tree4f406523b5776c280246fe06f21ab4f5b5b1951d
parent6f65ac296a885b9364016046e1c0160dfef812b1
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
libpthread/linuxthreads.old/sysdeps/mips/pt-machine.h