summaryrefslogtreecommitdiff
path: root/debian/patches/libpthread_no_recursive_mutex_initializer.patch
diff options
context:
space:
mode:
authorSamuel Thibault <sthibault@debian.org>2009-05-08 00:20:26 +0000
committerSamuel Thibault <sthibault@debian.org>2009-05-08 00:20:26 +0000
commit8a0f00da990787c51c90a1f36ed3b5017348fe51 (patch)
treec5b6eb8a530528dbbab14513452bcd302bdfc550 /debian/patches/libpthread_no_recursive_mutex_initializer.patch
parente3bc4a2c4800b841b2ff975ed8f256b580817bfb (diff)
* debian/patches/libpthread_no_recursive_mutex_initializer.patch: New patch
to drop undefined references to __pthread_recursive_mutexattr.
Diffstat (limited to 'debian/patches/libpthread_no_recursive_mutex_initializer.patch')
-rw-r--r--debian/patches/libpthread_no_recursive_mutex_initializer.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/libpthread_no_recursive_mutex_initializer.patch b/debian/patches/libpthread_no_recursive_mutex_initializer.patch
new file mode 100644
index 00000000..0d49523b
--- /dev/null
+++ b/debian/patches/libpthread_no_recursive_mutex_initializer.patch
@@ -0,0 +1,20 @@
+Index: libpthread/include/pthread/pthread.h
+===================================================================
+RCS file: /cvsroot/hurd/hurd/libpthread/include/pthread/pthread.h,v
+retrieving revision 1.17
+diff -u -p -r1.17 pthread.h
+--- libpthread/include/pthread/pthread.h 10 Jan 2009 13:22:26 -0000 1.17
++++ libpthread/include/pthread/pthread.h 8 May 2009 00:14:04 -0000
+@@ -310,12 +310,6 @@ extern int pthread_mutexattr_settype(pth
+ #include <bits/mutex.h>
+
+ #define PTHREAD_MUTEX_INITIALIZER __PTHREAD_MUTEX_INITIALIZER
+-/* Static initializer for recursive mutexes. */
+-
+-#ifdef __USE_GNU
+-# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
+- __PTHREAD_RECURSIVE_MUTEX_INITIALIZER
+-#endif
+
+ /* Create a mutex with attributes given by ATTR and store it in
+ *__MUTEX. */