From 5e15a7dd269dcdfd6bfa24278d3b1d16540c84ba Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 9 Dec 2019 05:01:27 +0100 Subject: [PATCH] 0ad: fix build on ppc64le-musl --- srcpkgs/0ad/patches/ppc-musl.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 srcpkgs/0ad/patches/ppc-musl.patch diff --git a/srcpkgs/0ad/patches/ppc-musl.patch b/srcpkgs/0ad/patches/ppc-musl.patch new file mode 100644 index 0000000000..388943badb --- /dev/null +++ b/srcpkgs/0ad/patches/ppc-musl.patch @@ -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 + #endif + ++#if NV_OS_LINUX ++# include // struct pt_regs ++#endif ++ + #if NV_OS_LINUX || NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD + # include // getpid + #endif