diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1996-10-23 17:15:45 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1996-10-23 17:15:45 +0000 |
commit | 43330eb225097265b35b29bf6cb617b1b98f17c2 (patch) | |
tree | ddcd9c8b00455f3e9766eec4d0a65188ca161e57 /lib/libc | |
parent | ef67e62f06441585786d79be3626e33e4e0fc9d0 (diff) |
compile
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/setproctitle.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/setproctitle.c b/lib/libc/gen/setproctitle.c index 0561748a04f..7e5a7319d0e 100644 --- a/lib/libc/gen/setproctitle.c +++ b/lib/libc/gen/setproctitle.c @@ -30,12 +30,13 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: setproctitle.c,v 1.3 1996/10/23 16:43:03 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: setproctitle.c,v 1.4 1996/10/23 17:15:44 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> #include <sys/types.h> #include <sys/exec.h> +#include <sys/sysctl.h> #include <vm/vm.h> #include <stdio.h> @@ -67,7 +68,7 @@ setproctitle(fmt, va_alist) static char buf[MAX_PROCTITLE], *bufp = buf; int used; -if __STDC__ +#if __STDC__ va_start(ap, fmt); #else va_start(ap); |