configs/orangepipc: Bump to U-Boot 2016.09.01
[buildroot-gz.git] / package / opencv / 0002-avoid-sysctl_h.patch
blob603220549e8d6033babe3bcbf046e66c1b4b98f7
1 From upstream master branch:
2 https://github.com/Itseez/opencv/blob/master/modules/core/src/
4 Do not include sysctl.h targeting Linux systems.
6 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
8 diff -Nur opencv-2.4.12.3.orig/modules/core/src/parallel.cpp opencv-2.4.12.3/modules/core/src/parallel.cpp
9 --- opencv-2.4.12.3.orig/modules/core/src/parallel.cpp 2015-10-26 08:56:34.000000000 +0100
10 +++ opencv-2.4.12.3/modules/core/src/parallel.cpp 2016-04-05 12:59:37.750143762 +0200
11 @@ -56,7 +56,7 @@
12 #include <sys/types.h>
13 #if defined ANDROID
14 #include <sys/sysconf.h>
15 - #else
16 + #elif defined __APPLE__
17 #include <sys/sysctl.h>
18 #endif
19 #endif
20 diff -Nur opencv-2.4.12.3.orig/modules/core/src/system.cpp opencv-2.4.12.3/modules/core/src/system.cpp
21 --- opencv-2.4.12.3.orig/modules/core/src/system.cpp 2015-10-26 08:56:34.000000000 +0100
22 +++ opencv-2.4.12.3/modules/core/src/system.cpp 2016-04-05 13:05:22.468323717 +0200
23 @@ -163,7 +163,7 @@
24 #include <sys/types.h>
25 #if defined ANDROID
26 #include <sys/sysconf.h>
27 -#else
28 +#elif defined __APPLE__
29 #include <sys/sysctl.h>
30 #endif
31 #endif