svn commit: r188828 - head/usr.bin/window
Warner Losh
imp at FreeBSD.org
Thu Feb 19 12:08:00 PST 2009
Author: imp
Date: Thu Feb 19 20:07:59 2009
New Revision: 188828
URL: http://svn.freebsd.org/changeset/base/188828
Log:
Include proper header files for system functions that are used and
that gcc complains about this code changing from the built-in
versions.
Modified:
head/usr.bin/window/compress.c
head/usr.bin/window/context.c
head/usr.bin/window/lcmd1.c
head/usr.bin/window/lcmd2.c
head/usr.bin/window/scanner.c
head/usr.bin/window/startup.c
head/usr.bin/window/string.c
head/usr.bin/window/ttoutput.c
head/usr.bin/window/tttermcap.c
head/usr.bin/window/ttzapple.c
head/usr.bin/window/var.c
head/usr.bin/window/wwdump.c
head/usr.bin/window/wwend.c
head/usr.bin/window/wwenviron.c
head/usr.bin/window/wwflush.c
head/usr.bin/window/wwinit.c
head/usr.bin/window/wwpty.c
head/usr.bin/window/wwspawn.c
head/usr.bin/window/xx.c
Modified: head/usr.bin/window/compress.c
==============================================================================
--- head/usr.bin/window/compress.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/compress.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -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;
Modified: head/usr.bin/window/context.c
==============================================================================
--- head/usr.bin/window/context.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/context.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -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.
Modified: head/usr.bin/window/lcmd1.c
==============================================================================
--- head/usr.bin/window/lcmd1.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/lcmd1.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -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 },
Modified: head/usr.bin/window/lcmd2.c
==============================================================================
--- head/usr.bin/window/lcmd2.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/lcmd2.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -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>
Modified: head/usr.bin/window/scanner.c
==============================================================================
--- head/usr.bin/window/scanner.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/scanner.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -46,6 +46,7 @@ static char rcsid[] =
#include "context.h"
#include "string.h"
#include "mystring.h"
+#include <stdlib.h>
s_getc()
{
Modified: head/usr.bin/window/startup.c
==============================================================================
--- head/usr.bin/window/startup.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/startup.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -45,6 +45,7 @@ static char rcsid[] =
#include "var.h"
#include "char.h"
#include "local.h"
+#include <stdio.h>
doconfig()
{
Modified: head/usr.bin/window/string.c
==============================================================================
--- head/usr.bin/window/string.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/string.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -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)
Modified: head/usr.bin/window/ttoutput.c
==============================================================================
--- head/usr.bin/window/ttoutput.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/ttoutput.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -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>
/*
Modified: head/usr.bin/window/tttermcap.c
==============================================================================
--- head/usr.bin/window/tttermcap.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/tttermcap.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -41,6 +41,7 @@ static char rcsid[] =
#endif /* not lint */
#include "tt.h"
+#include <stdlib.h>
char *tgetstr();
char *tgoto();
Modified: head/usr.bin/window/ttzapple.c
==============================================================================
--- head/usr.bin/window/ttzapple.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/ttzapple.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -43,6 +43,7 @@ static char rcsid[] =
#include "ww.h"
#include "tt.h"
#include "char.h"
+#include <stdio.h>
/*
zz|zapple|perfect apple:\
Modified: head/usr.bin/window/var.c
==============================================================================
--- head/usr.bin/window/var.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/var.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -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)
Modified: head/usr.bin/window/wwdump.c
==============================================================================
--- head/usr.bin/window/wwdump.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/wwdump.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -40,6 +40,7 @@ static char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
+#include <stdio.h>
#include <string.h>
#include "ww.h"
#include "tt.h"
Modified: head/usr.bin/window/wwend.c
==============================================================================
--- head/usr.bin/window/wwend.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/wwend.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -43,6 +43,7 @@ static char rcsid[] =
#include <signal.h>
#include "ww.h"
#include "tt.h"
+#include <stdlib.h>
/*ARGSUSED*/
int
Modified: head/usr.bin/window/wwenviron.c
==============================================================================
--- head/usr.bin/window/wwenviron.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/wwenviron.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -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'.
Modified: head/usr.bin/window/wwflush.c
==============================================================================
--- head/usr.bin/window/wwflush.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/wwflush.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -43,6 +43,7 @@ static char rcsid[] =
#include "ww.h"
#include "tt.h"
#include <signal.h>
+#include <strings.h>
wwflush()
{
Modified: head/usr.bin/window/wwinit.c
==============================================================================
--- head/usr.bin/window/wwinit.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/wwinit.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -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"
Modified: head/usr.bin/window/wwpty.c
==============================================================================
--- head/usr.bin/window/wwpty.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/wwpty.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -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
Modified: head/usr.bin/window/wwspawn.c
==============================================================================
--- head/usr.bin/window/wwspawn.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/wwspawn.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -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.
Modified: head/usr.bin/window/xx.c
==============================================================================
--- head/usr.bin/window/xx.c Thu Feb 19 19:53:58 2009 (r188827)
+++ head/usr.bin/window/xx.c Thu Feb 19 20:07:59 2009 (r188828)
@@ -44,6 +44,7 @@ static char rcsid[] =
#include "xx.h"
#include "tt.h"
#include <stdlib.h>
+#include <strings.h>
xxinit()
{
More information about the svn-src-head
mailing list