$OpenBSD: patch-cs_c,v 1.1 2017/11/06 08:54:28 rpointel Exp $

The 'mips' symbol is special on MIPS platforms, so rename it to prevent a
conflict.

--- cs.c.orig	Fri May  8 11:06:59 2015
+++ cs.c	Sat May  9 08:34:16 2015
@@ -919,8 +919,8 @@ int cs_op_count(csh ud, const cs_insn *insn, unsigned 
 					count++;
 			break;
 		case CS_ARCH_MIPS:
-			for (i = 0; i < insn->detail->mips.op_count; i++)
-				if (insn->detail->mips.operands[i].type == (mips_op_type)op_type)
+			for (i = 0; i < insn->detail->mipsen.op_count; i++)
+				if (insn->detail->mipsen.operands[i].type == (mips_op_type)op_type)
 					count++;
 			break;
 		case CS_ARCH_PPC:
@@ -1005,8 +1005,8 @@ int cs_op_index(csh ud, const cs_insn *insn, unsigned 
 			}
 			break;
 		case CS_ARCH_MIPS:
-			for (i = 0; i < insn->detail->mips.op_count; i++) {
-				if (insn->detail->mips.operands[i].type == (mips_op_type)op_type)
+			for (i = 0; i < insn->detail->mipsen.op_count; i++) {
+				if (insn->detail->mipsen.operands[i].type == (mips_op_type)op_type)
 					count++;
 				if (count == post)
 					return i;
