ht: fix build
This commit is contained in:
parent
e238b94b99
commit
e7197207f1
2 changed files with 12 additions and 1 deletions
11
srcpkgs/ht/patches/fix-build.patch
Normal file
11
srcpkgs/ht/patches/fix-build.patch
Normal file
|
@ -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;
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'ht'
|
# Template file for 'ht'
|
||||||
pkgname=ht
|
pkgname=ht
|
||||||
version=2.1.0
|
version=2.1.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
makedepends="ncurses-devel lzo-devel"
|
makedepends="ncurses-devel lzo-devel"
|
||||||
short_desc="File editor/viewer/analyzer for executables"
|
short_desc="File editor/viewer/analyzer for executables"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue