libunwind: add support for loongarch64
[openwrt/staging/nbd.git] / package / libs / libunwind / patches / 005-loongarch64-musl.pattch
1 --- a/src/loongarch64/getcontext.S
2 +++ b/src/loongarch64/getcontext.S
3 @@ -25,7 +25,9 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING
4 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
5
6 #include "offsets.h"
7 +#ifdef __GLIBC__
8 #include <endian.h>
9 +#endif
10 .text
11
12 #define SREG(X) st.d $r##X, $r4, (LINUX_UC_MCONTEXT_GREGS + 8 * X)