Received: by mail.netbsd.org (Postfix, from userid 605) id D4CAC84D21; Fri, 30 Aug 2019 14:17:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 5804584CEE for ; Fri, 30 Aug 2019 14:17:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id CI2jzLR79e2T for ; Fri, 30 Aug 2019 14:17:07 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id C76AF84CE9 for ; Fri, 30 Aug 2019 14:17:07 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id C1C79FBF4; Fri, 30 Aug 2019 14:17:07 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_156717462713200" MIME-Version: 1.0 Date: Fri, 30 Aug 2019 14:17:07 +0000 From: "Nia Alarie" Subject: CVS commit: pkgsrc/misc/qterm To: pkgsrc-changes@NetBSD.org Reply-To: nia@netbsd.org X-Mailer: log_accum Message-Id: <20190830141707.C1C79FBF4@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_156717462713200 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: nia Date: Fri Aug 30 14:17:07 UTC 2019 Modified Files: pkgsrc/misc/qterm: distinfo Added Files: pkgsrc/misc/qterm/patches: patch-qterm.h Log Message: qterm: Fix building terrifying K&R C with compilers made in this decade. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 pkgsrc/misc/qterm/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/misc/qterm/patches/patch-qterm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_156717462713200 Content-Disposition: inline Content-Length: 1972 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/misc/qterm/distinfo diff -u pkgsrc/misc/qterm/distinfo:1.8 pkgsrc/misc/qterm/distinfo:1.9 --- pkgsrc/misc/qterm/distinfo:1.8 Thu Apr 21 16:11:16 2016 +++ pkgsrc/misc/qterm/distinfo Fri Aug 30 14:17:07 2019 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2016/04/21 16:11:16 jperkin Exp $ +$NetBSD: distinfo,v 1.9 2019/08/30 14:17:07 nia Exp $ SHA1 (qterm-ac-1.0.tar.gz) = 2603f57265f62b144418ff4a283fc3454f9dcb4c RMD160 (qterm-ac-1.0.tar.gz) = 6234e96caff468ba5dd13babb6a0b2e33dcbd3d4 @@ -6,3 +6,4 @@ SHA512 (qterm-ac-1.0.tar.gz) = 3bbebf368 Size (qterm-ac-1.0.tar.gz) = 42415 bytes SHA1 (patch-aa) = c4ea95bc88749f71c6b54ff7bf1721cde4154310 SHA1 (patch-ab) = 49c741feed2bab08084fba6c9880a4e29e2db62c +SHA1 (patch-qterm.h) = 736872931cddaf3e2d7b9704d099091a6cf04647 Added files: Index: pkgsrc/misc/qterm/patches/patch-qterm.h diff -u /dev/null pkgsrc/misc/qterm/patches/patch-qterm.h:1.1 --- /dev/null Fri Aug 30 14:17:07 2019 +++ pkgsrc/misc/qterm/patches/patch-qterm.h Fri Aug 30 14:17:07 2019 @@ -0,0 +1,36 @@ +$NetBSD: patch-qterm.h,v 1.1 2019/08/30 14:17:07 nia Exp $ + +Fix build with modern C compilers. + +--- qterm.h.orig 1997-04-11 13:25:04.000000000 +0000 ++++ qterm.h +@@ -10,6 +10,7 @@ + + #ifndef __qterm_h__ + #define __qterm_h__ ++#include + + #ifndef TABFILE + # define TABFILE "/usr/local/etc/qtermtab" /* Default qtermtab file */ +@@ -77,7 +78,6 @@ char *strerror(); + char *xmalloc(); + extern char *ProgName; + extern char *TermFile; +-extern char *strcpy(); + extern int Debug; + extern int DoSysTabFile; + extern int DoUsrTabFile; +@@ -87,7 +87,12 @@ void AlarmOff(); + void Done(); + void MakeTable(); + void SetupSignals(); +- ++int ReadTabFile(); ++int SetTtyModes(); ++int UnSetTtyModes(); ++char *FixCntrl(); ++int StrToArgs(); ++int RegExMatch(); + #ifdef HAVE_STDARG_H + void Error(char *fmt, ...); + void dprintf(char *fmt, ...); --_----------=_156717462713200--