summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_condattr_destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_condattr_destroy.c')
-rw-r--r--lib/libpthread/thread/thr_condattr_destroy.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_condattr_destroy.c b/lib/libpthread/thread/thr_condattr_destroy.c
index ad91228..578523a 100644
--- a/lib/libpthread/thread/thr_condattr_destroy.c
+++ b/lib/libpthread/thread/thr_condattr_destroy.c
@@ -33,11 +33,13 @@
*/
#include <stdlib.h>
#include <errno.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
-int pthread_condattr_destroy(pthread_condattr_t *attr)
+#pragma weak pthread_condattr_destroy=_pthread_condattr_destroy
+
+int
+_pthread_condattr_destroy(pthread_condattr_t *attr)
{
int ret;
if (attr == NULL || *attr == NULL) {
@@ -49,4 +51,3 @@ int pthread_condattr_destroy(pthread_condattr_t *attr)
}
return(ret);
}
-#endif
OpenPOWER on IntegriCloud