From 68edf1604f7ead11f3e74dae23a755ab1ba2f734 Mon Sep 17 00:00:00 2001 From: Thomas Graichen Date: Sun, 19 Jan 1997 22:32:24 +0000 Subject: put all the __warn_references behind a #ifndef NO_WARN_REFERENCES which is then set in the libc Makefile for the mips (the mips linker can't handle them) --- lib/libc/compat-43/setrgid.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libc/compat-43/setrgid.c') diff --git a/lib/libc/compat-43/setrgid.c b/lib/libc/compat-43/setrgid.c index b26f65a8e01..57539b0034f 100644 --- a/lib/libc/compat-43/setrgid.c +++ b/lib/libc/compat-43/setrgid.c @@ -32,13 +32,15 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: setrgid.c,v 1.4 1996/08/19 08:19:34 tholo Exp $"; +static char *rcsid = "$OpenBSD: setrgid.c,v 1.5 1997/01/19 22:32:15 graichen Exp $"; #endif /* LIBC_SCCS and not lint */ #include #include +#ifndef NO_WARN_REFERENCES __warn_references(setrgid, "warning: this program uses setrgid(), which is deprecated."); +#endif extern int __setregid __P((gid_t, gid_t)); -- cgit v1.2.3