From e422429247bd689ad82a15ebdacdfc785b980b1d Mon Sep 17 00:00:00 2001 From: guenther Date: Sun, 13 Mar 2016 18:34:20 +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/stdlib/system.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/libc/stdlib/system.c') diff --git a/lib/libc/stdlib/system.c b/lib/libc/stdlib/system.c index de32d4328f7..fe718276b92 100644 --- a/lib/libc/stdlib/system.c +++ b/lib/libc/stdlib/system.c @@ -1,4 +1,4 @@ -/* $OpenBSD: system.c,v 1.11 2015/10/23 04:44:41 guenther Exp $ */ +/* $OpenBSD: system.c,v 1.12 2016/03/13 18:34:21 guenther Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. * All rights reserved. @@ -36,8 +36,6 @@ #include #include -extern char **environ; - int system(const char *command) { -- cgit v1.2.3-59-g8ed1b