pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/qterm qterm: Fix building terrifying K&R C with c...
details: https://anonhg.NetBSD.org/pkgsrc/rev/112305ec7ad2
branches: trunk
changeset: 338772:112305ec7ad2
user: nia <nia%pkgsrc.org@localhost>
date: Fri Aug 30 14:17:07 2019 +0000
description:
qterm: Fix building terrifying K&R C with compilers made in this decade.
diffstat:
misc/qterm/distinfo | 3 ++-
misc/qterm/patches/patch-qterm.h | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 1 deletions(-)
diffs (54 lines):
diff -r 8d5132fd2a39 -r 112305ec7ad2 misc/qterm/distinfo
--- a/misc/qterm/distinfo Fri Aug 30 14:00:23 2019 +0000
+++ b/misc/qterm/distinfo Fri Aug 30 14:17:07 2019 +0000
@@ -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 @@
Size (qterm-ac-1.0.tar.gz) = 42415 bytes
SHA1 (patch-aa) = c4ea95bc88749f71c6b54ff7bf1721cde4154310
SHA1 (patch-ab) = 49c741feed2bab08084fba6c9880a4e29e2db62c
+SHA1 (patch-qterm.h) = 736872931cddaf3e2d7b9704d099091a6cf04647
diff -r 8d5132fd2a39 -r 112305ec7ad2 misc/qterm/patches/patch-qterm.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/qterm/patches/patch-qterm.h Fri Aug 30 14:17:07 2019 +0000
@@ -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 <string.h>
+
+ #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, ...);
Home |
Main Index |
Thread Index |
Old Index