bescreencapture: fix build.

This commit is contained in:
Jerome Duval
2018-11-24 15:57:17 +01:00
parent bf8f2c0aab
commit b3aae9a290
2 changed files with 23 additions and 1 deletions

View File

@@ -8,10 +8,11 @@ HOMEPAGE="https://github.com/jackburton79/bescreencapture/releases"
COPYRIGHT="2014-2018 Stefano Ceccherini"
LICENSE="BSD (3-clause)
MIT"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/jackburton79/bescreencapture/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="7b4f7bcc5cb09cbe2e5fe0c631eb67a2159d0a3098f9141f9300de96930e57ba"
SOURCE_FILENAME="bescreencapture-$portVersion.tar.gz"
PATCHES="bescreencapture-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"

View File

@@ -0,0 +1,21 @@
From 5ac8d968c0f016d61d64fe0884f6ad6b69707b21 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 24 Nov 2018 15:55:31 +0100
Subject: include algorithm for std::max.
diff --git a/OutputView.cpp b/OutputView.cpp
index 109d7ab..218b096 100644
--- a/OutputView.cpp
+++ b/OutputView.cpp
@@ -31,6 +31,7 @@
#include <TextControl.h>
#include <Window.h>
+#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cstring>
--
2.19.1