about summary refs log tree commit diff
path: root/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/sysdeps/sparc/sparc32/pt-machine.h')
-rw-r--r--linuxthreads/sysdeps/sparc/sparc32/pt-machine.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h b/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h
index ea9685b59d..69af8579aa 100644
--- a/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h
+++ b/linuxthreads/sysdeps/sparc/sparc32/pt-machine.h
@@ -19,8 +19,13 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifndef PT_EI
+# define PT_EI extern inline
+#endif
+
 /* Spinlock implementation; required.  */
-static inline int testandset(int *spinlock)
+PT_EI int
+testandset (int *spinlock)
 {
   int ret;