diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/opencv3/0015-fix-supportqnx.patch | |
Diffstat (limited to 'vcpkg/ports/opencv3/0015-fix-supportqnx.patch')
| -rw-r--r-- | vcpkg/ports/opencv3/0015-fix-supportqnx.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vcpkg/ports/opencv3/0015-fix-supportqnx.patch b/vcpkg/ports/opencv3/0015-fix-supportqnx.patch new file mode 100644 index 0000000..53f614e --- /dev/null +++ b/vcpkg/ports/opencv3/0015-fix-supportqnx.patch @@ -0,0 +1,19 @@ +--- a/modules/core/src/system.cpp ++++ b/modules/core/src/system.cpp +@@ -129,11 +129,15 @@ void* allocSingletonNewBuffer(size_t size) { return malloc(size); } + #include <cstdlib> // std::abort + #endif + +-#if defined __ANDROID__ || defined __unix__ || defined __FreeBSD__ || defined __OpenBSD__ || defined __HAIKU__ ++#if defined __ANDROID__ || defined __unix__ || defined __FreeBSD__ || defined __OpenBSD__ || defined __HAIKU__ || defined __QNX__ + # include <unistd.h> + # include <fcntl.h> + #if defined __QNX__ + # include <sys/elf.h> ++# include <sys/auxv.h> ++using Elf64_auxv_t = auxv64_t; ++# include <elfdefinitions.h> ++constexpr decltype(auto) AT_HWCAP = NT_GNU_HWCAP; + #else + # include <elf.h> + #endif |