Fix build on -current (cope with removal of wait union, and remove

bogus duplicate declarations of functions in system headers)
This commit is contained in:
Kris Kennaway 2002-10-26 01:25:32 +00:00
parent 5b93a61d57
commit e163238c68
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68845
4 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- cxterm/charproc.c.orig Fri Oct 25 11:49:49 2002
+++ cxterm/charproc.c Fri Oct 25 11:52:44 2002
@@ -108,8 +108,6 @@
extern Widget toplevel;
extern void exit();
-extern char *malloc();
-extern char *realloc();
static void VTallocbuf();
static int finput();

View File

@ -0,0 +1,11 @@
--- utils/cit2tit.c.orig Fri Oct 25 11:56:53 2002
+++ utils/cit2tit.c Fri Oct 25 11:57:01 2002
@@ -29,8 +29,6 @@
#include <ctype.h>
#include <stdio.h>
-extern char *malloc(), *calloc(), *realloc();
-
extern char *HZencodeName(); /* from HZutil.c */
#include "HZtable.h"

View File

@ -0,0 +1,12 @@
--- cxterm/main.c.orig Fri Oct 25 11:44:46 2002
+++ cxterm/main.c Fri Oct 25 11:47:13 2002
@@ -223,6 +223,9 @@
#ifndef linux
#include <sgtty.h>
#endif
+#ifdef __FreeBSD__
+#define USE_POSIX_WAIT
+#endif
#include <sys/resource.h>
#define HAS_UTMP_UT_HOST
#define HAS_BSD_GROUPS

View File

@ -0,0 +1,11 @@
--- utils/tit2cit.c.orig Fri Oct 25 11:54:40 2002
+++ utils/tit2cit.c Fri Oct 25 11:54:50 2002
@@ -54,8 +54,6 @@
#include <ctype.h>
#include <stdio.h>
-extern char *malloc(), *calloc(), *realloc();
-
extern int HZencode(); /* from HZutil.o */
extern int HZgetprompt(); /* from HZutil.o */