summaryrefslogtreecommitdiff
path: root/lib/libc/hidden
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2016-03-13 18:34:22 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2016-03-13 18:34:22 +0000
commit8a59d71f31abaa642f02dbeac92ab61c3cfcb3e1 (patch)
tree0579de35b795570fbe1c5a9065453eb9f30f3a66 /lib/libc/hidden
parente028b5ad03d3421ea9ae9ef0d16f68d503f04315 (diff)
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@
Diffstat (limited to 'lib/libc/hidden')
-rw-r--r--lib/libc/hidden/stdlib.h5
1 files changed, 4 insertions, 1 deletions
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);*/