diff options
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-0.9.30.1/pthread_atfork.patch')
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-0.9.30.1/pthread_atfork.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-0.9.30.1/pthread_atfork.patch b/meta/recipes-core/uclibc/uclibc-0.9.30.1/pthread_atfork.patch new file mode 100644 index 0000000000..92accc2a1a --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-0.9.30.1/pthread_atfork.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | Index: uClibc-0.9.30/libpthread/linuxthreads/Makefile.in | ||
2 | =================================================================== | ||
3 | --- uClibc-0.9.30.orig/libpthread/linuxthreads/Makefile.in 2009-01-11 01:09:27.008515954 +0100 | ||
4 | +++ uClibc-0.9.30/libpthread/linuxthreads/Makefile.in 2009-01-11 01:09:35.295181636 +0100 | ||
5 | @@ -45,7 +45,7 @@ | ||
6 | pthread_SRC := \ | ||
7 | attr barrier cancel condvar errno events join pthread \ | ||
8 | lockfile manager mutex pt-machine ptcleanup \ | ||
9 | - ptclock_gettime ptclock_settime ptfork pthandles \ | ||
10 | + ptclock_gettime ptclock_settime ptfork pthandles pthread_atfork \ | ||
11 | pthread_setegid pthread_seteuid pthread_setgid pthread_setregid \ | ||
12 | pthread_setresgid pthread_setresuid pthread_setreuid pthread_setuid \ | ||
13 | rwlock semaphore sighandler signals specific spinlock | ||
14 | Index: uClibc-0.9.30/libpthread/linuxthreads/pthread_atfork.c | ||
15 | =================================================================== | ||
16 | --- uClibc-0.9.30.orig/libpthread/linuxthreads/pthread_atfork.c 2009-01-11 01:09:44.931848926 +0100 | ||
17 | +++ uClibc-0.9.30/libpthread/linuxthreads/pthread_atfork.c 2009-01-11 01:12:49.926539743 +0100 | ||
18 | @@ -43,12 +43,8 @@ | ||
19 | |||
20 | /* Hide the symbol so that no definition but the one locally in the | ||
21 | executable or DSO is used. */ | ||
22 | -int | ||
23 | -#ifndef __pthread_atfork | ||
24 | -/* Don't mark the compatibility function as hidden. */ | ||
25 | -attribute_hidden | ||
26 | -#endif | ||
27 | -__pthread_atfork (prepare, parent, child) | ||
28 | + | ||
29 | +int attribute_hidden __pthread_atfork (prepare, parent, child) | ||
30 | void (*prepare) (void); | ||
31 | void (*parent) (void); | ||
32 | void (*child) (void); | ||
33 | @@ -56,8 +52,5 @@ | ||
34 | return __register_atfork (prepare, parent, child, | ||
35 | &__dso_handle == NULL ? NULL : __dso_handle); | ||
36 | } | ||
37 | -#ifndef __pthread_atfork | ||
38 | -extern int pthread_atfork (void (*prepare) (void), void (*parent) (void), | ||
39 | - void (*child) (void)) attribute_hidden; | ||
40 | + | ||
41 | strong_alias (__pthread_atfork, pthread_atfork) | ||
42 | -#endif | ||