diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-06-03 02:51:14 +0000 | 
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-06-03 02:51:14 +0000 | 
| commit | 5b9e501c32829682998ec9b5bfdd9417b99d1ad3 (patch) | |
| tree | 1d1671382a93930180b7ec2a9104bba4baf9a71b /libpthread/nptl/pthread_attr_destroy.c | |
| parent | 855c7fda61d9313052a0afdfe851a4b390da845c (diff) | |
| download | uClibc-alpine-5b9e501c32829682998ec9b5bfdd9417b99d1ad3.tar.bz2 uClibc-alpine-5b9e501c32829682998ec9b5bfdd9417b99d1ad3.tar.xz  | |
Sync up with latest NPTL code from glibc and add minor
#ifdef __UCLIBC__ directives.
Diffstat (limited to 'libpthread/nptl/pthread_attr_destroy.c')
| -rw-r--r-- | libpthread/nptl/pthread_attr_destroy.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/libpthread/nptl/pthread_attr_destroy.c b/libpthread/nptl/pthread_attr_destroy.c index a30df0c45..b8d9a20d3 100644 --- a/libpthread/nptl/pthread_attr_destroy.c +++ b/libpthread/nptl/pthread_attr_destroy.c @@ -22,6 +22,7 @@  #include <string.h>  #include <unistd.h>  #include "pthreadP.h" +#include <shlib-compat.h>  int  __pthread_attr_destroy (attr) @@ -32,6 +33,11 @@ __pthread_attr_destroy (attr)    assert (sizeof (*attr) >= sizeof (struct pthread_attr));    iattr = (struct pthread_attr *) attr; +#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) +  /* In old struct pthread_attr, neither next nor cpuset are +     present.  */ +  if (__builtin_expect ((iattr->flags & ATTR_FLAG_OLDATTR), 0) == 0) +#endif      /* The affinity CPU set might be allocated dynamically.  */      free (iattr->cpuset);  | 
