aboutsummaryrefslogtreecommitdiffstats
path: root/news/trn4
diff options
context:
space:
mode:
authormph <mph@FreeBSD.org>2005-06-15 09:03:08 +0800
committermph <mph@FreeBSD.org>2005-06-15 09:03:08 +0800
commit1872ed6dc34333b16cdc062124254b000fb67c1a (patch)
treed01148e83a9891ca659cad1eadcd1c9d133d3b16 /news/trn4
parent75939aa3e2b66702e5f0f96afe4960d3654285d8 (diff)
downloadfreebsd-ports-gnome-1872ed6dc34333b16cdc062124254b000fb67c1a.tar.gz
freebsd-ports-gnome-1872ed6dc34333b16cdc062124254b000fb67c1a.tar.zst
freebsd-ports-gnome-1872ed6dc34333b16cdc062124254b000fb67c1a.zip
Fix incorrect ioctl arguments size (affects big-endian 64-bit platforms).
Submitted by: Marc Espie <espie@openbsd.org> via naddy
Diffstat (limited to 'news/trn4')
-rw-r--r--news/trn4/Makefile1
-rw-r--r--news/trn4/files/patch-term.c17
2 files changed, 18 insertions, 0 deletions
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);