From 32c7768b61c95094702adc74eaa693e9f28c61a2 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Sun, 13 Mar 2016 18:34:21 +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@ --- src/lib/libc/stdlib/system.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lib/libc/stdlib/system.c') diff --git a/src/lib/libc/stdlib/system.c b/src/lib/libc/stdlib/system.c index de32d4328f..fe718276b9 100644 --- a/src/lib/libc/stdlib/system.c +++ b/src/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-55-g6feb