summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2010-08-06 14:23:06 +0000
committerchristos <christos@NetBSD.org>2010-08-06 14:23:06 +0000
commite8deba048f34f05330ee4422baa394c003c048dd (patch)
tree2ada23ef71a5f98bc926d3bb1c2806f6bfc2d0c7 /lib/libpthread
parent1feec51e67f2d53bab421c3588393e51c3e0481f (diff)
Add a weak alias for pthread_attr_get_np. Noted my Matthias Drochner.
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/pthread_attr.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libpthread/pthread_attr.c b/lib/libpthread/pthread_attr.c
index 377941dddf6..febeb37fe41 100644
--- a/lib/libpthread/pthread_attr.c
+++ b/lib/libpthread/pthread_attr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_attr.c,v 1.13 2010/08/06 05:25:02 christos Exp $ */
+/* $NetBSD: pthread_attr.c,v 1.14 2010/08/06 14:23:06 christos Exp $ */
/*-
* Copyright (c) 2001, 2002, 2003, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_attr.c,v 1.13 2010/08/06 05:25:02 christos Exp $");
+__RCSID("$NetBSD: pthread_attr.c,v 1.14 2010/08/06 14:23:06 christos Exp $");
#include <errno.h>
#include <stdio.h>
@@ -41,6 +41,12 @@ __RCSID("$NetBSD: pthread_attr.c,v 1.13 2010/08/06 05:25:02 christos Exp $");
#include "pthread.h"
#include "pthread_int.h"
+#ifndef __lint__
+#define pthread_attr_get_np _pthread_attr_get_np
+#endif
+
+__weak_alias(pthread_attr_get_np, _pthread_attr_get_np)
+
static struct pthread_attr_private *pthread__attr_init_private(
pthread_attr_t *);