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
19 changed files with 21 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -46,6 +46,7 @@ static char rcsid[] =
#endif #endif
#include <paths.h> #include <paths.h>
#include <signal.h> #include <signal.h>
#include <stdio.h>
/* /*
* Set up the environment of this process to run in window 'wp'. * 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 "ww.h"
#include "tt.h" #include "tt.h"
#include <signal.h> #include <signal.h>
#include <strings.h>
wwflush() wwflush()
{ {

View File

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

View File

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

View File

@ -42,6 +42,7 @@ static char rcsid[] =
#include "ww.h" #include "ww.h"
#include <signal.h> #include <signal.h>
#include <unistd.h>
/* /*
* There is a dead lock with vfork and closing of pseudo-ports. * 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 "xx.h"
#include "tt.h" #include "tt.h"
#include <stdlib.h> #include <stdlib.h>
#include <strings.h>
xxinit() xxinit()
{ {