$OpenBSD: patch-modules_core_src_system_cpp,v 1.11 2021/11/01 08:12:09 phessler Exp $
Fix build on i386 and arm64.
Index: modules/core/src/system.cpp
--- modules/core/src/system.cpp.orig
+++ modules/core/src/system.cpp
@@ -235,8 +235,10 @@ std::wstring GetTempFileNameWinRT(std::wstring prefix)
 #ifndef OPENCV_DISABLE_THREAD_SUPPORT
 #include <pthread.h>
 #endif
+#include <fcntl.h>
 #include <sys/time.h>
 #include <time.h>
+#include <unistd.h>
 
 #if defined __MACH__ && defined __APPLE__
 #include <mach/mach.h>
@@ -551,7 +553,7 @@ struct HWFeatures
         }
     #endif // CV_CPUID_X86
 
-    #if defined __ANDROID__ || defined __linux__ || defined __FreeBSD__
+    #if defined __ANDROID__ || defined __linux__ || defined __FreeBSD__ || defined __OpenBSD__
     #ifdef __aarch64__
         have[CV_CPU_NEON] = true;
         have[CV_CPU_FP16] = true;
