First git repo commit for the libreCMC project
[librecmc/librecmc.git] / package / libs / libunwind / patches / 002-fix-building-getcontext_S.patch
1 diff -uprN a/src/mips/getcontext.S b/src/mips/getcontext.S
2 --- a/src/mips/getcontext.S     2012-10-06 12:54:38.000000000 +0800
3 +++ b/src/mips/getcontext.S     2016-06-08 13:35:25.033051679 +0800
4 @@ -24,12 +24,12 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING
5  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
6  
7  #include "offsets.h"
8 -#include <endian.h>
9  
10         .text
11 +       .set nomips16
12  
13  #if _MIPS_SIM == _ABIO32
14 -# if __BYTE_ORDER == __BIG_ENDIAN
15 +# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
16  #  define OFFSET 4
17  # else
18  #  define OFFSET 0
19