biology/libgtextutils: Unbreak for FreeBSD 12

Reported by:    pkg-fallout
Approved by:    jrm
Differential Revision:  https://reviews.freebsd.org/D14892
This commit is contained in:
Jason W. Bacon
2018-03-29 15:41:07 +00:00
parent 6276f061c2
commit 184db1bfcd
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# $FreeBSD$
PORTNAME= libgtextutils
PORTVERSION= 0.7
DISTVERSION= 0.7
CATEGORIES= biology
MAINTAINER= jwb@FreeBSD.org
@@ -0,0 +1,11 @@
--- src/gtextutils/text_line_reader.cpp.orig 2018-03-29 13:31:53 UTC
+++ src/gtextutils/text_line_reader.cpp
@@ -44,6 +44,7 @@ bool TextLineReader::next_line()
if (input_stream.eof())
return false;
- return input_stream ;
+ // Fix based on the only code change since 0.7
+ return input_stream.good() ;
}