diff options
-rw-r--r-- | news/trn4/Makefile | 1 | ||||
-rw-r--r-- | news/trn4/files/patch-term.c | 17 |
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); |