005-loongarch64-musl.pattch 346 B

123456789101112
  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. #include "offsets.h"
  6. +#ifdef __GLIBC__
  7. #include <endian.h>
  8. +#endif
  9. .text
  10. #define SREG(X) st.d $r##X, $r4, (LINUX_UC_MCONTEXT_GREGS + 8 * X)