diff options
| author | kleink <kleink@NetBSD.org> | 2003-04-13 17:39:13 +0000 |
|---|---|---|
| committer | kleink <kleink@NetBSD.org> | 2003-04-13 17:39:13 +0000 |
| commit | c02f38cf64bf9b2249a36227735ba461cda9c38e (patch) | |
| tree | a5a97706668ebc93ac8b4d260381c66fc595b9bd /lib/libc/stdlib | |
| parent | e69dc8ffacd810eee6d4da56bc1c1db45e929c0e (diff) | |
Warn if the old unsetenv() is referenced.
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/__unsetenv13.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/stdlib/__unsetenv13.c b/lib/libc/stdlib/__unsetenv13.c index 5f04648b6aa..b2c50ba3334 100644 --- a/lib/libc/stdlib/__unsetenv13.c +++ b/lib/libc/stdlib/__unsetenv13.c @@ -1,4 +1,4 @@ -/* $NetBSD: __unsetenv13.c,v 1.1 2003/04/07 13:41:14 kleink Exp $ */ +/* $NetBSD: __unsetenv13.c,v 1.2 2003/04/13 17:39:13 kleink Exp $ */ /* * Copyright (c) 1987, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "from: @(#)setenv.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: __unsetenv13.c,v 1.1 2003/04/07 13:41:14 kleink Exp $"); +__RCSID("$NetBSD: __unsetenv13.c,v 1.2 2003/04/13 17:39:13 kleink Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -61,6 +61,12 @@ __weak_alias(unsetenv,_unsetenv) extern rwlock_t __environ_lock; #endif +#ifdef __LIBC12_SOURCE__ +__warn_references(unsetenv, + "warning: reference to compatibility unsetenv();" + " include <stdlib.h> for correct reference") +#endif + extern char **environ; /* |
