Module Name: src Committed By: joerg Date: Mon Feb 7 21:39:47 UTC 2011
Modified Files: src/lib/libc/gen: getcap.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/lib/libc/gen/getcap.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/libc/gen/getcap.c diff -u src/lib/libc/gen/getcap.c:1.48 src/lib/libc/gen/getcap.c:1.49 --- src/lib/libc/gen/getcap.c:1.48 Sat Feb 2 20:56:46 2008 +++ src/lib/libc/gen/getcap.c Mon Feb 7 21:39:47 2011 @@ -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)