summaryrefslogtreecommitdiff
path: root/aarch64-support.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-28 09:28:27 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-28 09:28:27 +0000
commit3a247c78bd12d5a4e071f44d8a25d995b177b992 (patch)
tree40ed7eb427f96a35a8f99f52072f7bc0ffbfd50c /aarch64-support.patch
parente7ee91929bd6cdd515694008696915718ac51aa9 (diff)
automatic import of libopenni2-dev
Diffstat (limited to 'aarch64-support.patch')
-rw-r--r--aarch64-support.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/aarch64-support.patch b/aarch64-support.patch
index e34967a..309698d 100644
--- a/aarch64-support.patch
+++ b/aarch64-support.patch
@@ -31,3 +31,17 @@ index 0000000..2eb8966
+# 2014-era C++ sources: build against gnu++14 to stay clear of C++17
+# removals (dynamic exception specifications, the register keyword, etc.).
+CFLAGS += -std=gnu++14
+diff --git a/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h b/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h
+--- a/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h
++++ b/ThirdParty/PSCommon/XnLib/Include/XnPlatform.h
+@@ -53,6 +53,10 @@
+ #include "Linux-x86/XnPlatformLinux-x86.h"
+ #elif (__linux__ && __arm__)
+ #include "Linux-Arm/XnPlatformLinux-Arm.h"
++#elif (__linux__ && __aarch64__)
++// aarch64 is little-endian LP64 Linux; the Linux-x86 platform header defines
++// only arch-neutral C types and POSIX macros (no SSE/inline-asm), so reuse it.
++#include "Linux-x86/XnPlatformLinux-x86.h"
+ #elif _ARC
+ #include "ARC/XnPlaformARC.h"
+ #elif (__APPLE__)