AMD64 - Fix just enough of the missing prototypes to help vi not crash
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 22 Aug 2009 23:03:57 +0000 (16:03 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 22 Aug 2009 23:03:57 +0000 (16:03 -0700)
Reported-by: tuxillo
contrib/nvi/cl/cl_funcs.c
contrib/nvi/cl/cl_screen.c
contrib/nvi/ex/ex_txt.c

index 40315ee..a4dbdb6 100644 (file)
@@ -20,6 +20,7 @@ static const char sccsid[] = "@(#)cl_funcs.c  10.50 (Berkeley) 9/24/96";
 #include <bitstring.h>
 #include <ctype.h>
 #include <curses.h>
+#include <term.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
index dd8b012..cc8097f 100644 (file)
@@ -21,6 +21,7 @@ static const char sccsid[] = "@(#)cl_screen.c 10.49 (Berkeley) 9/24/96";
 
 #include <bitstring.h>
 #include <curses.h>
+#include <term.h>
 #include <errno.h>
 #include <signal.h>
 #include <stdio.h>
index 2f62ff5..6c96145 100644 (file)
@@ -24,6 +24,8 @@ static const char sccsid[] = "@(#)ex_txt.c    10.17 (Berkeley) 10/10/96";
 #include <string.h>
 
 #include "../common/common.h"
+#include "vi.h"
+#include "vi_extern.h"
 
 /*
  * !!!