From a044150c7907eb0db9ecc46f4d1cfd642cef2c55 Mon Sep 17 00:00:00 2001 From: Matthew Hunt Date: Wed, 15 Jun 2005 01:03:08 +0000 Subject: Fix incorrect ioctl arguments size (affects big-endian 64-bit platforms). Submitted by: Marc Espie via naddy --- news/trn4/Makefile | 1 + news/trn4/files/patch-term.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 news/trn4/files/patch-term.c (limited to 'news/trn4') diff --git a/news/trn4/Makefile b/news/trn4/Makefile index 908d48fb12c6..df4e6ab915a8 100644 --- a/news/trn4/Makefile +++ b/news/trn4/Makefile @@ -7,6 +7,7 @@ PORTNAME= trn PORTVERSION= 4.0.b76 +PORTREVISION= 1 CATEGORIES= news MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} diff --git a/news/trn4/files/patch-term.c b/news/trn4/files/patch-term.c new file mode 100644 index 000000000000..f07ced557c69 --- /dev/null +++ b/news/trn4/files/patch-term.c @@ -0,0 +1,17 @@ + +$FreeBSD$ + +--- term.c.orig ++++ term.c +@@ -662,9 +662,9 @@ + #endif + if (check_term) { + # ifdef FIONREAD +- long iocount; ++ int iocount; + ioctl(0, FIONREAD, &iocount); +- return (int)iocount; ++ return iocount; + # else /* !FIONREAD */ + # ifdef HAS_RDCHK + return rdchk(0); -- cgit v1.2.3