Ver código fonte

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

Mike Frysinger 18 anos atrás
pai
commit
be06fd35cb

+ 1 - 1
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;