0ad: fix build on ppc64le-musl

This commit is contained in:
q66 2019-12-09 05:01:27 +01:00
parent 396cd9beb9
commit 5e15a7dd26
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
On musl this is necessary to get full definition of pt_regs.
--- libraries/source/nvtt/src/src/nvcore/Debug.cpp
+++ libraries/source/nvtt/src/src/nvcore/Debug.cpp
@@ -27,6 +27,10 @@
# include <signal.h>
#endif
+#if NV_OS_LINUX
+# include <asm/ptrace.h> // struct pt_regs
+#endif
+
#if NV_OS_LINUX || NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD
# include <unistd.h> // getpid
#endif