X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=debian%2Fpatches%2F110_backport_r2242.diff;fp=debian%2Fpatches%2F110_backport_r2242.diff;h=f7a0beefb86edd8eec288b094c5602481f97e388;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hp=0000000000000000000000000000000000000000;hpb=454138ff8a20f6edb9b65a910101403d8b520643;p=opencv diff --git a/debian/patches/110_backport_r2242.diff b/debian/patches/110_backport_r2242.diff new file mode 100644 index 0000000..f7a0bee --- /dev/null +++ b/debian/patches/110_backport_r2242.diff @@ -0,0 +1,66 @@ +diff --git a/apps/haartraining/cvboost.cpp b/apps/haartraining/cvboost.cpp +index 210a14e..037874b 100644 +--- a/apps/haartraining/cvboost.cpp ++++ b/apps/haartraining/cvboost.cpp +@@ -64,6 +64,9 @@ + #include "_cvcommon.h" + #include "cvclassifier.h" + ++#ifdef _OPENMP ++#include "omp.h" ++#endif + + #define CV_BOOST_IMPL + +diff --git a/include/opencv/cxmisc.h b/include/opencv/cxmisc.h +index d808c7e..c24cd95 100644 +--- a/include/opencv/cxmisc.h ++++ b/include/opencv/cxmisc.h +@@ -48,14 +48,7 @@ + #ifndef _CXCORE_MISC_H_ + #define _CXCORE_MISC_H_ + +-#ifdef HAVE_CONFIG_H +- #include "cvconfig.h" +-#endif +- + #include +-#ifdef _OPENMP +-#include "omp.h" +-#endif + + /****************************************************************************************\ + * Compile-time tuning parameters * +diff --git a/src/cvaux/vs/blobtrackingmsfg.cpp b/src/cvaux/vs/blobtrackingmsfg.cpp +index e275535..8b74554 100644 +--- a/src/cvaux/vs/blobtrackingmsfg.cpp ++++ b/src/cvaux/vs/blobtrackingmsfg.cpp +@@ -40,6 +40,10 @@ + + #include "_cvaux.h" + ++#ifdef _OPENMP ++#include "omp.h" ++#endif ++ + // Uncomment to trade flexibility for speed + //#define CONST_HIST_SIZE + +diff --git a/src/cxcore/cxsystem.cpp b/src/cxcore/cxsystem.cpp +index 0cdbe21..c69e72f 100644 +--- a/src/cxcore/cxsystem.cpp ++++ b/src/cxcore/cxsystem.cpp +@@ -50,6 +50,10 @@ + #include + #endif + ++#ifdef _OPENMP ++#include "omp.h" ++#endif ++ + #include + + namespace cv +-- +1.6.6 +