Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Don't define weak aliases in the SMALL case. Th...



details:   https://anonhg.NetBSD.org/src/rev/81131c1a1bd5
branches:  trunk
changeset: 761790:81131c1a1bd5
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Feb 07 21:39:47 2011 +0000

description:
Don't define weak aliases in the SMALL case. They conflict with the real
function name since SMALL doesn't use the normal rename logic.

diffstat:

 lib/libc/gen/getcap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 008530cff71a -r 81131c1a1bd5 lib/libc/gen/getcap.c
--- a/lib/libc/gen/getcap.c     Mon Feb 07 21:23:47 2011 +0000
+++ b/lib/libc/gen/getcap.c     Mon Feb 07 21:39:47 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getcap.c,v 1.48 2008/02/02 20:56:46 christos Exp $     */
+/*     $NetBSD: getcap.c,v 1.49 2011/02/07 21:39:47 joerg Exp $        */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)getcap.c   8.3 (Berkeley) 3/25/94";
 #else
-__RCSID("$NetBSD: getcap.c,v 1.48 2008/02/02 20:56:46 christos Exp $");
+__RCSID("$NetBSD: getcap.c,v 1.49 2011/02/07 21:39:47 joerg Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -64,7 +64,7 @@
 #include <string.h>
 #include <unistd.h>
 
-#ifdef __weak_alias
+#if defined(__weak_alias) && !defined(SMALL)
 __weak_alias(cgetcap,_cgetcap)
 __weak_alias(cgetclose,_cgetclose)
 __weak_alias(cgetent,_cgetent)



Home | Main Index | Thread Index | Old Index