svn commit: r402631 - in head/x11-wm/blackbox: . files
Alexey Dokuchaev
danfe at FreeBSD.org
Mon Nov 30 02:21:44 UTC 2015
On Sun, Nov 29, 2015 at 09:53:13PM +0000, Michael Moll wrote:
> New Revision: 402631
> URL: https://svnweb.freebsd.org/changeset/ports/402631
>
> Log:
> x11-wm/blackbox: fix build on arm
Can you explain what exactly was wrong and how this fix addresses the
problem?
> +.if ${ARCH} == "armv6" || ${ARCH} == "armv6hf"
> +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_Toolbar.cc
> +.endif
Oh gosh this is so ugly. :(
> +--- src/Toolbar.cc.orig 2015-05-11 11:54:54 UTC
> ++++ src/Toolbar.cc
> +@@ -44,7 +44,7 @@ long nextTimeout(int resolution)
> + {
> + timeval now;
> + gettimeofday(&now, 0);
> +- return (std::max(1000l, ((((resolution - (now.tv_sec % resolution)) * 1000l))
> ++ return (std::max(1000ll, ((((resolution - (now.tv_sec % resolution)) * 1000l))
Can we just make this code portable across the gang instead of having
per-architecture EXTRA_PATCHES?
./danfe
More information about the svn-ports-all
mailing list