pkgsrc/x11/kterm/patches/patch-ae
joerg 4d7bb9ad02 Bring this a bit nearer to ANSI C to unbreak compilation on DragonFly.
Namely, use errno from errno.h, malloc, realloc and exit from stdlib.h.
2005-11-29 06:18:52 +00:00

22 lines
565 B
Text

$NetBSD: patch-ae,v 1.1 2005/11/29 06:18:52 joerg Exp $
--- charproc.c.orig 2005-11-29 06:09:50.000000000 +0000
+++ charproc.c
@@ -71,6 +71,7 @@ in this Software without prior written a
#define Select select
#endif
#include <stdio.h>
+#include <stdlib.h>
#include <errno.h>
#include <setjmp.h>
#include <ctype.h>
@@ -101,9 +102,6 @@ extern jmp_buf VTend;
extern XtAppContext app_con;
extern Widget toplevel;
-extern void exit();
-extern char *malloc();
-extern char *realloc();
extern fd_set Select_mask;
extern fd_set X_mask;
extern fd_set pty_mask;