diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 14:36:55 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 14:36:55 +0000 |
commit | 5ffc30ac873a193b37e6f3bfde022b94fc6fab0d (patch) | |
tree | 9854f6f9f9705d93a193f4cb2a15c08fe68e4c0f /libpthread/linuxthreads/sysdeps | |
parent | aec95adbb445a6cb45e4609bc35f4fd0b3e67250 (diff) | |
download | uClibc-alpine-5ffc30ac873a193b37e6f3bfde022b94fc6fab0d.tar.bz2 uClibc-alpine-5ffc30ac873a193b37e6f3bfde022b94fc6fab0d.tar.xz |
Synch linuxthreds with trunk
Diffstat (limited to 'libpthread/linuxthreads/sysdeps')
-rw-r--r-- | libpthread/linuxthreads/sysdeps/sh/pt-machine.h | 2 | ||||
-rw-r--r-- | libpthread/linuxthreads/sysdeps/unix/sysv/linux/mq_notify.c | 2 |
2 files changed, 3 insertions, 1 deletions
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) |