diff --git a/visudo.c b/visudo.c index 59f8fa6cc..f4a7d91d9 100644 --- a/visudo.c +++ b/visudo.c @@ -42,17 +42,20 @@ static char rcsid[] = "$Id$"; #include #include #include -#ifdef STD_HEADERS +#ifdef STDC_HEADERS #include -#endif /* STD_HEADERS */ +#endif /* STDC_HEADERS */ +#ifdef HAVE_UNISTD_H +#include +#endif /* HAVE_UNISTD_H */ #include #include #include "sudo.h" -#ifndef STD_HEADERS +#ifndef STDC_HEADERS extern char *getenv(); -#endif /* !STD_HEADERS */ +#endif /* !STDC_HEADERS */ extern FILE *yyin, *yyout; extern int errno, yylineno; @@ -63,7 +66,7 @@ int status = 0, err_line_no = 0; char *sudoers_tmp_file = TMPSUDOERS; FILE *sudoers_tmp_fp=NULL, *sudoers_fp=NULL; -void Exit() +RETSIGTYPE Exit() { if (sudoers_tmp_fp) (void) fclose(sudoers_tmp_fp);