diff options
| author | Michael Banck <mbanck@debian.org> | 2005-12-11 12:28:45 +0000 |
|---|---|---|
| committer | Michael Banck <mbanck@debian.org> | 2005-12-11 12:28:45 +0000 |
| commit | 9f3d5d4f4ba76fccc35a1195fd6373321bded17d (patch) | |
| tree | c825c72b1154c9e6cedfcf0d47a72b2c3bfb2fcb /debian/patches | |
| parent | 9ce8449c31a43e2b6c29116680d323c305d8d32e (diff) | |
* debian/patches/libpthread_weak_inline.patch: New patch by Neal
Walfield.
Diffstat (limited to 'debian/patches')
| -rw-r--r-- | debian/patches/libpthread_weak_inline.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/debian/patches/libpthread_weak_inline.patch b/debian/patches/libpthread_weak_inline.patch new file mode 100644 index 00000000..13e1cc90 --- /dev/null +++ b/debian/patches/libpthread_weak_inline.patch @@ -0,0 +1,47 @@ +Index: libpthread/sysdeps/generic/bits/mutex.h +=================================================================== +RCS file: /cvsroot/hurd/hurd/libpthread/sysdeps/generic/bits/mutex.h,v +retrieving revision 1.3 +diff -u -p -r1.3 mutex.h +--- libpthread/sysdeps/generic/bits/mutex.h 12 May 2005 20:55:38 -0000 1.3 ++++ libpthread/sysdeps/generic/bits/mutex.h 10 Dec 2005 19:45:49 -0000 +@@ -75,7 +75,8 @@ pthread_mutex_init (struct __pthread_mut + struct __pthread_mutex initialized_mutex = __PTHREAD_MUTEX_INITIALIZER; + + extern int _pthread_mutex_init (struct __pthread_mutex *, +- const pthread_mutexattr_t *); ++ const pthread_mutexattr_t *) ++ __attribute__ ((weak)); + + if (attr) + return _pthread_mutex_init (__mutex, attr); +@@ -87,7 +88,8 @@ pthread_mutex_init (struct __pthread_mut + _EXTERN_INLINE int + pthread_mutex_destroy (struct __pthread_mutex *__mutex) + { +- extern int _pthread_mutex_destroy (struct __pthread_mutex *); ++ extern int _pthread_mutex_destroy (struct __pthread_mutex *) ++ __attribute__ ((weak)); + + if (__mutex->attr || __mutex->data) + return _pthread_mutex_destroy (__mutex); +@@ -98,7 +100,8 @@ pthread_mutex_destroy (struct __pthread_ + _EXTERN_INLINE int + __pthread_mutex_lock (struct __pthread_mutex *__mutex) + { +- extern int _pthread_mutex_lock (struct __pthread_mutex *); ++ extern int _pthread_mutex_lock (struct __pthread_mutex *) ++ __attribute__ ((weak)); + + if (__mutex->attr == NULL + && __mutex->data == NULL +@@ -111,7 +114,8 @@ __pthread_mutex_lock (struct __pthread_m + extern __inline int + __pthread_mutex_trylock (struct __pthread_mutex *__mutex) + { +- extern int _pthread_mutex_trylock (struct __pthread_mutex *); ++ extern int _pthread_mutex_trylock (struct __pthread_mutex *) ++ __attribute__ ((weak)); + + if (__mutex->attr == NULL + && __mutex->data == NULL) |
