002-fix-building-getcontext_S.patch 412 B

1234567891011121314151617
  1. --- a/src/mips/getcontext.S
  2. +++ b/src/mips/getcontext.S
  3. @@ -24,12 +24,12 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING
  4. WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
  5. #include "offsets.h"
  6. -#include <endian.h>
  7. .text
  8. + .set nomips16
  9. #if _MIPS_SIM == _ABIO32
  10. -# if __BYTE_ORDER == __BIG_ENDIAN
  11. +# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
  12. # define OFFSET 4
  13. # else
  14. # define OFFSET 0