From be06fd35cbfa9f4284de60ff22780ba1d2f060a4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 3 Jan 2006 05:13:16 +0000 Subject: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpthread/linuxthreads.old') 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 , 2000. */ static inline int -_test_and_set (int *p, int v) __THROW +__NTH (_test_and_set (int *p, int v)) { int r, t; -- cgit v1.2.3