diff --git a/srcpkgs/ht/patches/fix-build.patch b/srcpkgs/ht/patches/fix-build.patch new file mode 100644 index 00000000000..bcbc8f170af --- /dev/null +++ b/srcpkgs/ht/patches/fix-build.patch @@ -0,0 +1,11 @@ +--- htapp.cc.orig 2018-01-10 18:38:43.062092621 +0100 ++++ htapp.cc 2018-01-10 18:39:04.732035497 +0100 +@@ -3023,7 +3023,7 @@ static uint isqr(uint u) + { + uint a = 2; + uint b = u/a; +- while (abs(a - b) > 1) { ++ while (abs((long int)a - (long int)b) > 1) { + a = (a+b)/2; + b = u/a; + } diff --git a/srcpkgs/ht/template b/srcpkgs/ht/template index 73aa1b8da1d..b12a4efb6c6 100644 --- a/srcpkgs/ht/template +++ b/srcpkgs/ht/template @@ -1,7 +1,7 @@ # Template file for 'ht' pkgname=ht version=2.1.0 -revision=1 +revision=2 build_style=gnu-configure makedepends="ncurses-devel lzo-devel" short_desc="File editor/viewer/analyzer for executables"