mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-25 06:26:15 +00:00
3f28c422ba
Modify package depends to allow building for loongarch64. Also fix for building with musl. Signed-off-by: Weijie Gao <hackpascal@gmail.com>
13 lines
346 B
Plaintext
13 lines
346 B
Plaintext
--- a/src/loongarch64/getcontext.S
|
|
+++ b/src/loongarch64/getcontext.S
|
|
@@ -25,7 +25,9 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
|
|
#include "offsets.h"
|
|
+#ifdef __GLIBC__
|
|
#include <endian.h>
|
|
+#endif
|
|
.text
|
|
|
|
#define SREG(X) st.d $r##X, $r4, (LINUX_UC_MCONTEXT_GREGS + 8 * X)
|