summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpthread/linuxthreads/attr.c6
-rw-r--r--libpthread/linuxthreads/internals.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/libpthread/linuxthreads/attr.c b/libpthread/linuxthreads/attr.c
index a79bd78c4..e60f2ed32 100644
--- a/libpthread/linuxthreads/attr.c
+++ b/libpthread/linuxthreads/attr.c
@@ -163,6 +163,7 @@ int __pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize)
}
weak_alias (__pthread_attr_getguardsize, pthread_attr_getguardsize)
+#if 0 /* uClibc: deprecated stuff disabled */
int __pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr)
{
attr->__stackaddr = stackaddr;
@@ -186,6 +187,7 @@ weak_alias (__pthread_attr_getstackaddr, pthread_attr_getstackaddr)
link_warning (pthread_attr_getstackaddr,
"the use of `pthread_attr_getstackaddr' is deprecated, use `pthread_attr_getstack'")
+#endif
int __pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
@@ -213,7 +215,7 @@ int __pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
return 0;
}
-#if PTHREAD_STACK_MIN == 16384
+#if PTHREAD_STACK_MIN == 16384 || defined __UCLIBC__
weak_alias (__pthread_attr_setstacksize, pthread_attr_setstacksize)
#else
versioned_symbol (libpthread, __pthread_attr_setstacksize,
@@ -281,7 +283,7 @@ int __pthread_attr_setstack (pthread_attr_t *attr, void *stackaddr,
return err;
}
-#if PTHREAD_STACK_MIN == 16384
+#if PTHREAD_STACK_MIN == 16384 || defined __UCLIBC__
weak_alias (__pthread_attr_setstack, pthread_attr_setstack)
#else
versioned_symbol (libpthread, __pthread_attr_setstack, pthread_attr_setstack,
diff --git a/libpthread/linuxthreads/internals.h b/libpthread/linuxthreads/internals.h
index a04995f41..9be272fe7 100644
--- a/libpthread/linuxthreads/internals.h
+++ b/libpthread/linuxthreads/internals.h
@@ -303,10 +303,12 @@ extern int __pthread_attr_setguardsize (pthread_attr_t *__attr,
size_t __guardsize);
extern int __pthread_attr_getguardsize (const pthread_attr_t *__attr,
size_t *__guardsize);
+#if 0 /* uClibc: deprecated stuff disabled */
extern int __pthread_attr_setstackaddr (pthread_attr_t *__attr,
void *__stackaddr);
extern int __pthread_attr_getstackaddr (const pthread_attr_t *__attr,
void **__stackaddr);
+#endif
extern int __pthread_attr_setstacksize (pthread_attr_t *__attr,
size_t __stacksize);
extern int __pthread_attr_getstacksize (const pthread_attr_t *__attr,