mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 01:19:08 +08:00
22 lines
817 B
Diff
22 lines
817 B
Diff
diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp
|
|
index 9bade08..28f006e 100644
|
|
--- 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
|