Include proper header files for system functions that are used and

that gcc complains about this code changing from the built-in
versions.
This commit is contained in:
Warner Losh 2009-02-19 20:07:59 +00:00
parent 21fc9f2bcc
commit b3ba0b1ed2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188828
19 changed files with 21 additions and 0 deletions

View File

@ -47,6 +47,7 @@ static char rcsid[] =
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <strings.h>
int cc_trace = 0;
FILE *cc_trace_fp;

View File

@ -44,6 +44,7 @@ static char rcsid[] =
#include "mystring.h"
#include "context.h"
#include <fcntl.h>
#include <stdlib.h>
/*
* Context push/pop for nested command files.

View File

@ -46,6 +46,7 @@ static char rcsid[] =
#include "value.h"
#include "lcmd.h"
#include "var.h"
#include <stdio.h>
struct lcmd_arg arg_window[] = {
{ "row", 1, ARG_NUM },

View File

@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
#include "var.h"
#include "lcmd.h"
#include "alias.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/resource.h>

View File

@ -46,6 +46,7 @@ static char rcsid[] =
#include "context.h"
#include "string.h"
#include "mystring.h"
#include <stdlib.h>
s_getc()
{

View File

@ -45,6 +45,7 @@ static char rcsid[] =
#include "var.h"
#include "char.h"
#include "local.h"
#include <stdio.h>
doconfig()
{

View File

@ -42,6 +42,8 @@ static char rcsid[] =
#include <string.h> /* System string definitions. */
#include "mystring.h" /* Local string definitions. */
#include <stdio.h>
#include <stdlib.h>
char *
str_cpy(s)

View File

@ -43,6 +43,8 @@ static char rcsid[] =
#include "ww.h"
#include "tt.h"
#include <errno.h>
#include <strings.h>
#include <stdlib.h>
#include <unistd.h>
/*

View File

@ -41,6 +41,7 @@ static char rcsid[] =
#endif /* not lint */
#include "tt.h"
#include <stdlib.h>
char *tgetstr();
char *tgoto();

View File

@ -43,6 +43,7 @@ static char rcsid[] =
#include "ww.h"
#include "tt.h"
#include "char.h"
#include <stdio.h>
/*
zz|zapple|perfect apple:\

View File

@ -43,6 +43,7 @@ static char rcsid[] =
#include "value.h"
#include "var.h"
#include "mystring.h"
#include <stdlib.h>
struct var *
var_set1(head, name, v)

View File

@ -40,6 +40,7 @@ static char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <stdio.h>
#include <string.h>
#include "ww.h"
#include "tt.h"

View File

@ -43,6 +43,7 @@ static char rcsid[] =
#include <signal.h>
#include "ww.h"
#include "tt.h"
#include <stdlib.h>
/*ARGSUSED*/
int

View File

@ -46,6 +46,7 @@ static char rcsid[] =
#endif
#include <paths.h>
#include <signal.h>
#include <stdio.h>
/*
* Set up the environment of this process to run in window 'wp'.

View File

@ -43,6 +43,7 @@ static char rcsid[] =
#include "ww.h"
#include "tt.h"
#include <signal.h>
#include <strings.h>
wwflush()
{

View File

@ -43,6 +43,7 @@ static char rcsid[] =
#include "ww.h"
#include "tt.h"
#include <signal.h>
#include <stdio.h>
#include <fcntl.h>
#include <termcap.h>
#include "char.h"

View File

@ -43,6 +43,7 @@ static char rcsid[] =
#include "ww.h"
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#if !defined(OLD_TTY) && !defined(TIOCPKT)
#include <sys/ioctl.h>
#endif

View File

@ -42,6 +42,7 @@ static char rcsid[] =
#include "ww.h"
#include <signal.h>
#include <unistd.h>
/*
* There is a dead lock with vfork and closing of pseudo-ports.

View File

@ -44,6 +44,7 @@ static char rcsid[] =
#include "xx.h"
#include "tt.h"
#include <stdlib.h>
#include <strings.h>
xxinit()
{