summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-09-09 18:46:35 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-09-09 18:46:35 +0000
commit0188acdcfce04c0703247f836bb4238c1d8611c3 (patch)
tree13e2870da16172a63bd6df94171a906a38d476f2 /lib/libc
parentc8c47b3b22a8b9deec8edb41c494e6043e0a1f64 (diff)
Silence erroneous "environ used, but not defined" lint warning by
providing a stub. ok deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/Lint_environ.c7
-rw-r--r--lib/libc/sys/Makefile.inc6
2 files changed, 10 insertions, 3 deletions
diff --git a/lib/libc/sys/Lint_environ.c b/lib/libc/sys/Lint_environ.c
new file mode 100644
index 00000000000..2776ba4c913
--- /dev/null
+++ b/lib/libc/sys/Lint_environ.c
@@ -0,0 +1,7 @@
+/* $OpenBSD: Lint_environ.c,v 1.1 2007/09/09 18:46:34 otto Exp $ */
+
+/* Public domain, Otto Moerbeek, 2007 */
+
+#include <stdlib.h>
+
+char **environ;
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc
index 811b7519505..6e114fb3065 100644
--- a/lib/libc/sys/Makefile.inc
+++ b/lib/libc/sys/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.80 2006/10/24 04:40:59 tedu Exp $
+# $OpenBSD: Makefile.inc,v 1.81 2007/09/09 18:46:34 otto Exp $
# $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $
# @(#)Makefile.inc 8.1 (Berkeley) 6/17/93
@@ -13,11 +13,11 @@ SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S rfork.S \
LSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \
Lint_rfork.c Lint_sbrk.c \
Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \
- Lint_sigsuspend.c Lint_syscall.c Lint_crt.c
+ Lint_sigsuspend.c Lint_syscall.c Lint_crt.c Lint_environ.c
DPSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \
Lint_sbrk.c \
Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \
- Lint_sigsuspend.c Lint_syscall.c Lint_crt.c
+ Lint_sigsuspend.c Lint_syscall.c Lint_crt.c Lint_environ.c
# glue to provide compatibility between GCC 1.X and 2.X and for compat
# with old syscall interfaces.