Module Name: src Committed By: christos Date: Fri Aug 6 14:23:06 UTC 2010
Modified Files: src/lib/libpthread: pthread_attr.c Log Message: Add a weak alias for pthread_attr_get_np. Noted my Matthias Drochner. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/lib/libpthread/pthread_attr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libpthread/pthread_attr.c diff -u src/lib/libpthread/pthread_attr.c:1.13 src/lib/libpthread/pthread_attr.c:1.14 --- src/lib/libpthread/pthread_attr.c:1.13 Fri Aug 6 01:25:02 2010 +++ src/lib/libpthread/pthread_attr.c Fri Aug 6 10:23:06 2010 @@ -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 @@ #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 *);