ncmpcpp: fix 32bit platforms
This commit is contained in:
parent
9cdea5a572
commit
db28113b9a
|
@ -0,0 +1,11 @@
|
|||
--- src/utility/html.cpp.orig 2016-10-31 08:28:47.304056301 +0100
|
||||
+++ src/utility/html.cpp 2016-10-31 08:28:25.476945846 +0100
|
||||
@@ -66,7 +66,7 @@ void stripHtmlTags(std::string &s)
|
||||
for (size_t i = s.find("<"); i != std::string::npos; i = s.find("<"))
|
||||
{
|
||||
size_t j = s.find(">", i)+1;
|
||||
- if (s.compare(i, std::min(3ul, j-i), "<p ") == 0 || s.compare(i, j-i, "</p>") == 0)
|
||||
+ if (s.compare(i, std::min(3ul, (unsigned long)j-i), "<p ") == 0 || s.compare(i, j-i, "</p>") == 0)
|
||||
s.replace(i, j-i, "\n");
|
||||
else
|
||||
s.replace(i, j-i, "");
|
|
@ -15,7 +15,6 @@ license="GPL-2"
|
|||
homepage="http://ncmpcpp.rybczak.net/"
|
||||
distfiles="http://ncmpcpp.rybczak.net/stable/ncmpcpp-${version}.tar.bz2"
|
||||
checksum=8c2234a325659b9c1596ecb4065e969324308e90cd031ac0442510bb9a6f3310
|
||||
broken=https://build.voidlinux.eu/builders/i686_builder/builds/27112/steps/shell_3/logs/stdio
|
||||
|
||||
# Required by waddwstr() with ncurses on musl
|
||||
CXXFLAGS="-D_XOPEN_SOURCE=600"
|
||||
|
|
Loading…
Reference in New Issue