mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-11 01:23:51 +02:00
0ad: fix build on ppc64le-musl
This commit is contained in:
parent
396cd9beb9
commit
5e15a7dd26
1 changed files with 15 additions and 0 deletions
15
srcpkgs/0ad/patches/ppc-musl.patch
Normal file
15
srcpkgs/0ad/patches/ppc-musl.patch
Normal 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
|
Loading…
Add table
Reference in a new issue