apvlv: fix FTBFS
This commit is contained in:
parent
eb9ccda7f2
commit
cfb783c88d
1 changed files with 23 additions and 0 deletions
23
srcpkgs/apvlv/patches/fix-gcc7-ftbfs.patch
Normal file
23
srcpkgs/apvlv/patches/fix-gcc7-ftbfs.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
--- src/ApvlvCmds.cc
|
||||
+++ src/ApvlvCmds.cc
|
||||
@@ -200,7 +200,7 @@ namespace apvlv
|
||||
|
||||
if (len >= 4
|
||||
&& *s == '<'
|
||||
- && (e = strchr ((char *) s, '>')) != '\0' && *(s + 2) != '-')
|
||||
+ && (e = strchr ((char *) s, '>')) && *(s + 2) != '-')
|
||||
{
|
||||
e++;
|
||||
StringKeyMap::iterator it;
|
||||
--- src/ApvlvCore.cc
|
||||
+++ src/ApvlvCore.cc
|
||||
@@ -90,7 +90,7 @@ namespace apvlv
|
||||
{
|
||||
mInuse = use;
|
||||
|
||||
- if (mInuse == false && gView->hasloaded (filename (), type ()) == false)
|
||||
+ if (mInuse == false && !gView->hasloaded (filename (), type ()))
|
||||
{
|
||||
debug ("core :%p is not needed, delete it\n", this);
|
||||
delete this;
|
||||
|
Loading…
Reference in a new issue