diff options
author | joerg <joerg@pkgsrc.org> | 2005-11-29 06:18:52 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-11-29 06:18:52 +0000 |
commit | 4d7bb9ad02cb8a3bfdfeb98f49e96a690b94e25c (patch) | |
tree | 48b7e4fe10651d1e7a870713beca530c5c27a76c /x11/kterm/patches | |
parent | ece7563b5163f050eb3dd0590ed7192ff06b8df3 (diff) | |
download | pkgsrc-4d7bb9ad02cb8a3bfdfeb98f49e96a690b94e25c.tar.gz |
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.
Diffstat (limited to 'x11/kterm/patches')
-rw-r--r-- | x11/kterm/patches/patch-ac | 12 | ||||
-rw-r--r-- | x11/kterm/patches/patch-ae | 22 |
2 files changed, 34 insertions, 0 deletions
diff --git a/x11/kterm/patches/patch-ac b/x11/kterm/patches/patch-ac new file mode 100644 index 00000000000..48900260a92 --- /dev/null +++ b/x11/kterm/patches/patch-ac @@ -0,0 +1,12 @@ +$NetBSD: patch-ac,v 1.3 2005/11/29 06:18:52 joerg Exp $ + +--- data.h.orig 2005-11-29 06:09:00.000000000 +0000 ++++ data.h +@@ -65,7 +65,6 @@ extern int bcnt; + #ifdef DEBUG + extern int debug; + #endif /* DEBUG */ +-extern int errno; + extern int max_plus1; + extern int switchfb[]; + diff --git a/x11/kterm/patches/patch-ae b/x11/kterm/patches/patch-ae new file mode 100644 index 00000000000..8ce7163552d --- /dev/null +++ b/x11/kterm/patches/patch-ae @@ -0,0 +1,22 @@ +$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; |