r5062 - glibc-package/trunk/debian/patches/any
Author: aurel32
Date: 2011-12-10 17:01:25 +0000 (Sat, 10 Dec 2011)
New Revision: 5062
Added:
glibc-package/trunk/debian/patches/any/local-linuxthreads-XPG7.diff
Log:
Add missing patch
Added: glibc-package/trunk/debian/patches/any/local-linuxthreads-XPG7.diff
===================================================================
--- glibc-package/trunk/debian/patches/any/local-linuxthreads-XPG7.diff (rev 0)
+++ glibc-package/trunk/debian/patches/any/local-linuxthreads-XPG7.diff 2011-12-10 17:01:25 UTC (rev 5062)
@@ -0,0 +1,41 @@
+2011-12-09 Aurelien Jarno <aurelien@aurel32.net>
+
+ * sysdeps/pthread/pthread.h: Cleanup. Fix up for XPG7.
+
+--- a/linuxthreads/sysdeps/pthread/pthread.h
++++ b/linuxthreads/sysdeps/pthread/pthread.h
+@@ -86,7 +86,7 @@ enum
+ PTHREAD_MUTEX_RECURSIVE_NP,
+ PTHREAD_MUTEX_ERRORCHECK_NP,
+ PTHREAD_MUTEX_ADAPTIVE_NP
+-#ifdef __USE_UNIX98
++#if defined __USE_UNIX98 || defined __USE_XOPEN2K8
+ ,
+ PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
+ PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
+@@ -241,7 +241,6 @@ extern int pthread_attr_setscope (pthrea
+ extern int pthread_attr_getscope (__const pthread_attr_t *__restrict __attr,
+ int *__restrict __scope) __THROW;
+
+-#ifdef __USE_UNIX98
+ /* Set the size of the guard area at the bottom of the thread. */
+ extern int pthread_attr_setguardsize (pthread_attr_t *__attr,
+ size_t __guardsize) __THROW;
+@@ -250,7 +249,6 @@ extern int pthread_attr_setguardsize (pt
+ extern int pthread_attr_getguardsize (__const pthread_attr_t *__restrict
+ __attr, size_t *__restrict __guardsize)
+ __THROW;
+-#endif
+
+ /* Set the starting address of the stack of the thread to be created.
+ Depending on whether the stack grows up or down the value must either
+@@ -371,7 +369,7 @@ extern int pthread_mutexattr_getpshared
+ extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr,
+ int __pshared) __THROW;
+
+-#ifdef __USE_UNIX98
++#if defined __USE_UNIX98 || defined __USE_XOPEN2K8
+ /* Set the mutex kind attribute in *ATTR to KIND (either PTHREAD_MUTEX_NORMAL,
+ PTHREAD_MUTEX_RECURSIVE, PTHREAD_MUTEX_ERRORCHECK, or
+ PTHREAD_MUTEX_DEFAULT). */
+
Reply to: