From 8a59d71f31abaa642f02dbeac92ab61c3cfcb3e1 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Sun, 13 Mar 2016 18:34:22 +0000 Subject: environ and __progname are not declared in a public header; declare them in libc's hidden/stdlib.h instead of in each .c file that needs one ok deraadt@ gsoares@ mpi@ --- lib/libc/hidden/stdlib.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/libc/hidden') diff --git a/lib/libc/hidden/stdlib.h b/lib/libc/hidden/stdlib.h index 0370fb8f5fe..8898423c8d8 100644 --- a/lib/libc/hidden/stdlib.h +++ b/lib/libc/hidden/stdlib.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdlib.h,v 1.6 2015/11/10 04:14:03 guenther Exp $ */ +/* $OpenBSD: stdlib.h,v 1.7 2016/03/13 18:34:21 guenther Exp $ */ /* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */ /*- @@ -42,6 +42,9 @@ char *__findenv(const char *, int, int *); void __atexit_register_cleanup(void (*)(void)); __END_HIDDEN_DECLS +extern char **environ; +extern char *__progname; + #if 0 extern PROTO_NORMAL(__mb_cur_max); /*extern PROTO_NORMAL(suboptarg);*/ -- cgit v1.2.3