From 5ffc30ac873a193b37e6f3bfde022b94fc6fab0d Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Wed, 18 Jun 2008 14:36:55 +0000 Subject: Synch linuxthreds with trunk --- libpthread/linuxthreads/sysdeps/sh/pt-machine.h | 2 ++ libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'libpthread/linuxthreads/sysdeps') 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) diff --git a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c index eace94c86..6cd0f09c1 100644 --- a/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c +++ b/libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c @@ -196,7 +196,7 @@ init_mq_netlink (void) if (err == 0) { - static int added_atfork; + static smallint added_atfork; if (added_atfork == 0 && pthread_atfork (NULL, NULL, reset_once) != 0) -- cgit v1.2.3