0ad: fix build on ppc64le-musl
This commit is contained in:
parent
396cd9beb9
commit
5e15a7dd26
|
@ -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
|
Loading…
Reference in New Issue