documentviewer: fix build on x86_64.

This commit is contained in:
Jérôme Duval
2016-12-07 17:34:22 +01:00
parent 1e81a24ec8
commit 8957aaead0
2 changed files with 23 additions and 1 deletions

View File

@@ -3,10 +3,11 @@ DESCRIPTION="DocumentViewer is a viewer that supports PDF and DJVU files."
HOMEPAGE="http://github.com/HaikuArchives/DocumentViewer" HOMEPAGE="http://github.com/HaikuArchives/DocumentViewer"
COPYRIGHT="2010-2014 Haiku, Inc" COPYRIGHT="2010-2014 Haiku, Inc"
LICENSE="MIT" LICENSE="MIT"
REVISION="8" REVISION="9"
SOURCE_URI="https://github.com/HaikuArchives/DocumentViewer/archive/185b59ce4bd850b28c2c3cfcc20a4e2677d4bd44.tar.gz" SOURCE_URI="https://github.com/HaikuArchives/DocumentViewer/archive/185b59ce4bd850b28c2c3cfcc20a4e2677d4bd44.tar.gz"
CHECKSUM_SHA256="29123fbad4ebf83a829480f0e8136e1e55286ae351c6a030ab3e8617481719fc" CHECKSUM_SHA256="29123fbad4ebf83a829480f0e8136e1e55286ae351c6a030ab3e8617481719fc"
SOURCE_DIR="DocumentViewer-185b59ce4bd850b28c2c3cfcc20a4e2677d4bd44" SOURCE_DIR="DocumentViewer-185b59ce4bd850b28c2c3cfcc20a4e2677d4bd44"
PATCHES="documentviewer-0.3_git.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64" ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86" SECONDARY_ARCHITECTURES="x86"

View File

@@ -0,0 +1,21 @@
From 41ca688e6df4c23f387a22d3c3e0418028e74f09 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 7 Dec 2016 14:51:42 +0000
Subject: missing cmath for std::sqrt().
diff --git a/application/PrintingWindow.cpp b/application/PrintingWindow.cpp
index 2c3fc44..5513008 100644
--- a/application/PrintingWindow.cpp
+++ b/application/PrintingWindow.cpp
@@ -9,6 +9,7 @@
#include "PrintingWindow.h"
#include <algorithm>
+#include <cmath>
#include <memory>
#include <Application.h>
--
2.10.2