diff options
Diffstat (limited to 'graphics/opencv2/patches/patch-modules_ocl_src_gftt.cpp')
-rw-r--r-- | graphics/opencv2/patches/patch-modules_ocl_src_gftt.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/opencv2/patches/patch-modules_ocl_src_gftt.cpp b/graphics/opencv2/patches/patch-modules_ocl_src_gftt.cpp new file mode 100644 index 00000000000..d62933ba057 --- /dev/null +++ b/graphics/opencv2/patches/patch-modules_ocl_src_gftt.cpp @@ -0,0 +1,16 @@ +$NetBSD: patch-modules_ocl_src_gftt.cpp,v 1.1 2015/10/17 10:28:43 fhajny Exp $ + +Avoid GS define from sys/regset.h on SunOS. + +--- modules/ocl/src/gftt.cpp.orig 2014-04-11 10:15:26.000000000 +0000 ++++ modules/ocl/src/gftt.cpp +@@ -69,6 +69,9 @@ struct DefCornerCompare + } + }; + ++#if defined(__sun) ++#undef GS ++#endif + // sort corner point using opencl bitonicosrt implementation + static void sortCorners_caller(oclMat& corners, const int count) + { |