From f206ed41e1ef05c720ed7068821900181644d900 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Wed, 7 May 2008 06:50:30 +0000 Subject: Remove gcc warning due to missing prototype for 'testandset' Signed-off-by: Carmelo Amoroso --- libpthread/linuxthreads.old/sysdeps/sh/pt-machine.h | 2 ++ libpthread/linuxthreads/sysdeps/sh/pt-machine.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'libpthread') diff --git a/libpthread/linuxthreads.old/sysdeps/sh/pt-machine.h b/libpthread/linuxthreads.old/sysdeps/sh/pt-machine.h index 4ec87ad89..793f80b2d 100644 --- a/libpthread/linuxthreads.old/sysdeps/sh/pt-machine.h +++ b/libpthread/linuxthreads.old/sysdeps/sh/pt-machine.h @@ -29,6 +29,8 @@ # define PT_EI __extern_always_inline #endif +extern long int testandset (int *spinlock); + /* Spinlock implementation; required. */ PT_EI long int testandset (int *spinlock) diff --git a/libpthread/linuxthreads/sysdeps/sh/pt-machine.h b/libpthread/linuxthreads/sysdeps/sh/pt-machine.h index 4ec87ad89..793f80b2d 100644 --- a/libpthread/linuxthreads/sysdeps/sh/pt-machine.h +++ b/libpthread/linuxthreads/sysdeps/sh/pt-machine.h @@ -29,6 +29,8 @@ # define PT_EI __extern_always_inline #endif +extern long int testandset (int *spinlock); + /* Spinlock implementation; required. */ PT_EI long int testandset (int *spinlock) -- cgit v1.2.3