From: Todd C. Miller Date: Fri, 9 Jan 2004 05:15:38 +0000 (+0000) Subject: Fix compilation under K&R X-Git-Tag: SUDO_1_6_8~268 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd4acb880d2c345da91f8e884f632bb7853f38b8;p=sudo Fix compilation under K&R --- diff --git a/sudo_noexec.c b/sudo_noexec.c index 539721533..72f790195 100644 --- a/sudo_noexec.c +++ b/sudo_noexec.c @@ -44,7 +44,14 @@ static const char rcsid[] = "$Sudo$"; * Dummy replacement for libc execve(2) */ int +#ifdef __STDC__ execve(const char *path, char *const argv[], char *const envp[]) +#else +execve(path, argv, envp) + const char *path; + char *const argv[]; + char *const envp[]; +#endif { extern int errno;