[opencv] 05/13: Update patches/fix_ftbfs_on_non_linux
Nobuhiro Iwamatsu
iwamatsu at moszumanska.debian.org
Sat May 13 09:54:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
iwamatsu pushed a commit to branch master
in repository opencv.
commit 7d5e79ccce5bcf5e818022c01ab4a89590420529
Author: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
Date: Tue May 9 03:58:42 2017 +0900
Update patches/fix_ftbfs_on_non_linux
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu at nigauri.org>
---
debian/patches/fix_ftbfs_on_non_linux | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/debian/patches/fix_ftbfs_on_non_linux b/debian/patches/fix_ftbfs_on_non_linux
index 9a4933e..8cb1814 100644
--- a/debian/patches/fix_ftbfs_on_non_linux
+++ b/debian/patches/fix_ftbfs_on_non_linux
@@ -1,8 +1,10 @@
Description: Fix FTBFS on non linux
Forwarded: not yet
Author: Pino Toscano <pino at debian.org>
-Last-Update: 2015-04-27
+Last-Update: 2017-05-09
+diff --git a/modules/core/src/parallel.cpp b/modules/core/src/parallel.cpp
+index 71ac94eec8..c36911377d 100644
--- a/modules/core/src/parallel.cpp
+++ b/modules/core/src/parallel.cpp
@@ -50,13 +50,13 @@
@@ -21,7 +23,7 @@ Last-Update: 2015-04-27
#include <sys/sysctl.h>
#endif
#endif
-@@ -514,7 +514,7 @@
+@@ -562,7 +562,7 @@ int cv::getNumberOfCPUs(void)
#elif defined ANDROID
static int ncpus = getNumberOfCPUsImpl();
return ncpus;
@@ -30,14 +32,16 @@ Last-Update: 2015-04-27
return (int)sysconf( _SC_NPROCESSORS_ONLN );
#elif defined __APPLE__
int numCPU=0;
+diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp
+index 3c8f39d74b..6264dd6da6 100644
--- a/modules/core/src/system.cpp
+++ b/modules/core/src/system.cpp
-@@ -198,12 +198,14 @@
+@@ -198,12 +198,14 @@ std::wstring GetTempFileNameWinRT(std::wstring prefix)
#include <stdarg.h>
--#if defined __linux__ || defined __APPLE__ || defined __EMSCRIPTEN__
-+#if defined __linux__ || defined __APPLE__ || defined __EMSCRIPTEN__ || defined __GLIBC__
+-#if defined __linux__ || defined __APPLE__ || defined __EMSCRIPTEN__ || defined __FreeBSD__
++#if defined __linux__ || defined __APPLE__ || defined __EMSCRIPTEN__ || defined __FreeBSD__ || defined __GLIBC__
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list