musl: sh4: add missing bits/reg.h
[openwrt/staging/wigyori.git] / toolchain / musl / patches / 990-sh4-add-missing-bits_reg.h
diff --git a/toolchain/musl/patches/990-sh4-add-missing-bits_reg.h b/toolchain/musl/patches/990-sh4-add-missing-bits_reg.h
new file mode 100644 (file)
index 0000000..f8c684f
--- /dev/null
@@ -0,0 +1,6 @@
+diff -ruN musl-1.2.4.old/arch/sh/bits/reg.h musl-1.2.4/arch/sh/bits/reg.h
+--- musl-1.2.4.old/arch/sh/bits/reg.h  1970-01-01 01:00:00.000000000 +0100
++++ musl-1.2.4/arch/sh/bits/reg.h      2023-10-24 22:42:19.013309424 +0200
+@@ -0,0 +1,2 @@
++#undef __WORDSIZE
++#define __WORDSIZE 32