diff options
author | drochner <drochner> | 2006-11-13 14:51:08 +0000 |
---|---|---|
committer | drochner <drochner> | 2006-11-13 14:51:08 +0000 |
commit | f9d266b6838c913a1ab6bd241077c4d2419b7110 (patch) | |
tree | 8dc271e4a852e6fd932ab9ca892fbce868e95e4c /sysutils/pcvt-utils/patches | |
parent | 89d7f5f59f3c2a7f35fa2b60fb60d6a805ba7f23 (diff) | |
download | pkgsrc-f9d266b6838c913a1ab6bd241077c4d2419b7110.tar.gz |
make this compile with gcc4
Diffstat (limited to 'sysutils/pcvt-utils/patches')
-rw-r--r-- | sysutils/pcvt-utils/patches/patch-af | 8 | ||||
-rw-r--r-- | sysutils/pcvt-utils/patches/patch-ah | 25 |
2 files changed, 19 insertions, 14 deletions
diff --git a/sysutils/pcvt-utils/patches/patch-af b/sysutils/pcvt-utils/patches/patch-af index 62f4488a128..7577c2b5670 100644 --- a/sysutils/pcvt-utils/patches/patch-af +++ b/sysutils/pcvt-utils/patches/patch-af @@ -1,12 +1,14 @@ -$NetBSD: patch-af,v 1.1 2000/12/28 02:32:16 wiz Exp $ +$NetBSD: patch-af,v 1.2 2006/11/13 14:51:08 drochner Exp $ ---- demo/playvt.c.orig Sat Nov 1 07:49:36 1997 +--- demo/playvt.c.orig 1997-11-01 07:49:36.000000000 +0100 +++ demo/playvt.c -@@ -42,6 +42,7 @@ +@@ -42,7 +42,9 @@ static char *id = *---------------------------------------------------------------------------*/ #include <stdio.h> +#include <string.h> #include <unistd.h> ++#include <stdlib.h> main(argc,argv) + int argc; diff --git a/sysutils/pcvt-utils/patches/patch-ah b/sysutils/pcvt-utils/patches/patch-ah index 5ff2de5fa73..10c830bf51f 100644 --- a/sysutils/pcvt-utils/patches/patch-ah +++ b/sysutils/pcvt-utils/patches/patch-ah @@ -1,8 +1,8 @@ -$NetBSD: patch-ah,v 1.1 2004/05/23 22:47:54 kristerw Exp $ +$NetBSD: patch-ah,v 1.2 2006/11/13 14:51:08 drochner Exp $ ---- fontedit/fontedit.c.orig 2004-05-24 00:36:58.000000000 +0200 -+++ fontedit/fontedit.c 2004-05-24 00:39:38.000000000 +0200 -@@ -26,10 +26,10 @@ +--- fontedit/fontedit.c.orig 1995-10-07 22:44:58.000000000 +0100 ++++ fontedit/fontedit.c +@@ -26,20 +26,21 @@ void clear_screen(); #include <stdio.h> #ifdef SYSV #include <sys/termio.h> @@ -15,7 +15,10 @@ $NetBSD: patch-ah,v 1.1 2004/05/23 22:47:54 kristerw Exp $ #if defined (__NetBSD__) || defined (__FreeBSD__) #include <sys/termios.h> #include <sys/ioctl.h> -@@ -39,7 +39,7 @@ + #endif /* __NetBSD__ || __FreeBSD__ */ + #include <signal.h> ++#include <stdlib.h> + #ifdef CURFIX #define CURSORON "\033[?25h" #define CURSOROFF "\033[?25l" @@ -24,7 +27,7 @@ $NetBSD: patch-ah,v 1.1 2004/05/23 22:47:54 kristerw Exp $ #define MAX_ROWS 10 #define MAX_COLS 8 -@@ -103,10 +103,10 @@ +@@ -103,10 +104,10 @@ unsigned int current_entry; #ifdef SYSV struct termio old_stty, new_stty; @@ -37,7 +40,7 @@ $NetBSD: patch-ah,v 1.1 2004/05/23 22:47:54 kristerw Exp $ #if defined (__NetBSD__) || defined (__FreeBSD__) struct termios old_stty, new_stty; #endif /* __NetBSD__ || __FreeBSD__ */ -@@ -123,13 +123,13 @@ +@@ -123,13 +124,13 @@ interrupt() void clear_screen(); #ifdef CURFIX printf("%s\n",CURSORON); @@ -54,7 +57,7 @@ $NetBSD: patch-ah,v 1.1 2004/05/23 22:47:54 kristerw Exp $ #if defined (__NetBSD__) || defined (__FreeBSD__) ioctl( 0, TIOCSETA, &old_stty ); #endif /* __NetBSD__ || __FreeBSD__ */ -@@ -180,13 +180,13 @@ +@@ -180,13 +181,13 @@ char *argv[]; } #ifdef CURFIX printf("%s\n",CURSOROFF); @@ -71,7 +74,7 @@ $NetBSD: patch-ah,v 1.1 2004/05/23 22:47:54 kristerw Exp $ #if defined (__NetBSD__) || defined (__FreeBSD__) ioctl( 0, TIOCGETA, &old_stty ); #endif /* __NetBSD__ || __FreeBSD__ */ -@@ -196,7 +196,7 @@ +@@ -196,7 +197,7 @@ char *argv[]; new_stty.c_lflag &= ~ICANON; new_stty.c_cc[VMIN] = 1; ioctl( 0, TCSETA, &new_stty ); @@ -80,7 +83,7 @@ $NetBSD: patch-ah,v 1.1 2004/05/23 22:47:54 kristerw Exp $ #if defined (__NetBSD__) || defined (__FreeBSD__) new_stty.c_lflag &= ~ICANON; new_stty.c_lflag &= ~ECHO; -@@ -207,17 +207,17 @@ +@@ -207,17 +208,17 @@ char *argv[]; new_stty.sg_flags |= CBREAK; new_stty.sg_flags &= ~ECHO; ioctl( 0, TIOCSETP, &new_stty ); @@ -101,7 +104,7 @@ $NetBSD: patch-ah,v 1.1 2004/05/23 22:47:54 kristerw Exp $ #if defined (__NetBSD__) || defined (__FreeBSD__) ioctl( 0, TIOCSETA, &old_stty ); #endif /* __NetBSD__ || __FreeBSD__ */ -@@ -230,7 +230,7 @@ +@@ -230,7 +231,7 @@ char *argv[]; fclose( font_file ); #ifdef CURFIX printf("%s\n",CURSORON); |