summaryrefslogtreecommitdiffstats
path: root/usr.bin/window
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-02-19 20:07:59 +0000
committerimp <imp@FreeBSD.org>2009-02-19 20:07:59 +0000
commita95a0aafc4f4312f1ddef311c2bb08aebaeb9e07 (patch)
treedfe23a00ff468d3109b32dfa5137a90beacd7411 /usr.bin/window
parentef3be571f7bacd07b5374ed70e09d4184e271f29 (diff)
downloadFreeBSD-src-a95a0aafc4f4312f1ddef311c2bb08aebaeb9e07.zip
FreeBSD-src-a95a0aafc4f4312f1ddef311c2bb08aebaeb9e07.tar.gz
Include proper header files for system functions that are used and
that gcc complains about this code changing from the built-in versions.
Diffstat (limited to 'usr.bin/window')
-rw-r--r--usr.bin/window/compress.c1
-rw-r--r--usr.bin/window/context.c1
-rw-r--r--usr.bin/window/lcmd1.c1
-rw-r--r--usr.bin/window/lcmd2.c1
-rw-r--r--usr.bin/window/scanner.c1
-rw-r--r--usr.bin/window/startup.c1
-rw-r--r--usr.bin/window/string.c2
-rw-r--r--usr.bin/window/ttoutput.c2
-rw-r--r--usr.bin/window/tttermcap.c1
-rw-r--r--usr.bin/window/ttzapple.c1
-rw-r--r--usr.bin/window/var.c1
-rw-r--r--usr.bin/window/wwdump.c1
-rw-r--r--usr.bin/window/wwend.c1
-rw-r--r--usr.bin/window/wwenviron.c1
-rw-r--r--usr.bin/window/wwflush.c1
-rw-r--r--usr.bin/window/wwinit.c1
-rw-r--r--usr.bin/window/wwpty.c1
-rw-r--r--usr.bin/window/wwspawn.c1
-rw-r--r--usr.bin/window/xx.c1
19 files changed, 21 insertions, 0 deletions
diff --git a/usr.bin/window/compress.c b/usr.bin/window/compress.c
index 6294b93..facba21 100644
--- a/usr.bin/window/compress.c
+++ b/usr.bin/window/compress.c
@@ -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;
diff --git a/usr.bin/window/context.c b/usr.bin/window/context.c
index 78cf892..3f35285 100644
--- a/usr.bin/window/context.c
+++ b/usr.bin/window/context.c
@@ -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.
diff --git a/usr.bin/window/lcmd1.c b/usr.bin/window/lcmd1.c
index 1e072d6..b63151c 100644
--- a/usr.bin/window/lcmd1.c
+++ b/usr.bin/window/lcmd1.c
@@ -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 },
diff --git a/usr.bin/window/lcmd2.c b/usr.bin/window/lcmd2.c
index a9972a9..3d87060 100644
--- a/usr.bin/window/lcmd2.c
+++ b/usr.bin/window/lcmd2.c
@@ -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>
diff --git a/usr.bin/window/scanner.c b/usr.bin/window/scanner.c
index 785d0a3..6b92476 100644
--- a/usr.bin/window/scanner.c
+++ b/usr.bin/window/scanner.c
@@ -46,6 +46,7 @@ static char rcsid[] =
#include "context.h"
#include "string.h"
#include "mystring.h"
+#include <stdlib.h>
s_getc()
{
diff --git a/usr.bin/window/startup.c b/usr.bin/window/startup.c
index 557c0be..7ebaf10 100644
--- a/usr.bin/window/startup.c
+++ b/usr.bin/window/startup.c
@@ -45,6 +45,7 @@ static char rcsid[] =
#include "var.h"
#include "char.h"
#include "local.h"
+#include <stdio.h>
doconfig()
{
diff --git a/usr.bin/window/string.c b/usr.bin/window/string.c
index 57b5fa1..6455781 100644
--- a/usr.bin/window/string.c
+++ b/usr.bin/window/string.c
@@ -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)
diff --git a/usr.bin/window/ttoutput.c b/usr.bin/window/ttoutput.c
index 1be0fa0..1224f49 100644
--- a/usr.bin/window/ttoutput.c
+++ b/usr.bin/window/ttoutput.c
@@ -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>
/*
diff --git a/usr.bin/window/tttermcap.c b/usr.bin/window/tttermcap.c
index 5cc82e6..1fb52de 100644
--- a/usr.bin/window/tttermcap.c
+++ b/usr.bin/window/tttermcap.c
@@ -41,6 +41,7 @@ static char rcsid[] =
#endif /* not lint */
#include "tt.h"
+#include <stdlib.h>
char *tgetstr();
char *tgoto();
diff --git a/usr.bin/window/ttzapple.c b/usr.bin/window/ttzapple.c
index 2fd6fb9..80e1351 100644
--- a/usr.bin/window/ttzapple.c
+++ b/usr.bin/window/ttzapple.c
@@ -43,6 +43,7 @@ static char rcsid[] =
#include "ww.h"
#include "tt.h"
#include "char.h"
+#include <stdio.h>
/*
zz|zapple|perfect apple:\
diff --git a/usr.bin/window/var.c b/usr.bin/window/var.c
index 8ef3175..0ffa8a7 100644
--- a/usr.bin/window/var.c
+++ b/usr.bin/window/var.c
@@ -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)
diff --git a/usr.bin/window/wwdump.c b/usr.bin/window/wwdump.c
index 7988492d..7f70e3e 100644
--- a/usr.bin/window/wwdump.c
+++ b/usr.bin/window/wwdump.c
@@ -40,6 +40,7 @@ static char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
+#include <stdio.h>
#include <string.h>
#include "ww.h"
#include "tt.h"
diff --git a/usr.bin/window/wwend.c b/usr.bin/window/wwend.c
index ae2d9bc..22fe9dc 100644
--- a/usr.bin/window/wwend.c
+++ b/usr.bin/window/wwend.c
@@ -43,6 +43,7 @@ static char rcsid[] =
#include <signal.h>
#include "ww.h"
#include "tt.h"
+#include <stdlib.h>
/*ARGSUSED*/
int
diff --git a/usr.bin/window/wwenviron.c b/usr.bin/window/wwenviron.c
index f60f7fa..0abf460 100644
--- a/usr.bin/window/wwenviron.c
+++ b/usr.bin/window/wwenviron.c
@@ -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'.
diff --git a/usr.bin/window/wwflush.c b/usr.bin/window/wwflush.c
index 414cc4b..ef30b58 100644
--- a/usr.bin/window/wwflush.c
+++ b/usr.bin/window/wwflush.c
@@ -43,6 +43,7 @@ static char rcsid[] =
#include "ww.h"
#include "tt.h"
#include <signal.h>
+#include <strings.h>
wwflush()
{
diff --git a/usr.bin/window/wwinit.c b/usr.bin/window/wwinit.c
index 4803672..1fc4e0b 100644
--- a/usr.bin/window/wwinit.c
+++ b/usr.bin/window/wwinit.c
@@ -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"
diff --git a/usr.bin/window/wwpty.c b/usr.bin/window/wwpty.c
index d26280b..9a8724d 100644
--- a/usr.bin/window/wwpty.c
+++ b/usr.bin/window/wwpty.c
@@ -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
diff --git a/usr.bin/window/wwspawn.c b/usr.bin/window/wwspawn.c
index 477f920..416dad2 100644
--- a/usr.bin/window/wwspawn.c
+++ b/usr.bin/window/wwspawn.c
@@ -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.
diff --git a/usr.bin/window/xx.c b/usr.bin/window/xx.c
index 82dcb33..c058d2f 100644
--- a/usr.bin/window/xx.c
+++ b/usr.bin/window/xx.c
@@ -44,6 +44,7 @@ static char rcsid[] =
#include "xx.h"
#include "tt.h"
#include <stdlib.h>
+#include <strings.h>
xxinit()
{
OpenPOWER on IntegriCloud