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:
parent
21fc9f2bcc
commit
b3ba0b1ed2
@ -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;
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
@ -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 },
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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)
|
||||||
|
@ -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>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -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();
|
||||||
|
@ -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:\
|
||||||
|
@ -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)
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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'.
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
|
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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.
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user