aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emulators/qemu-devel/files/patch-target-mips-cpu.h15
-rw-r--r--emulators/qemu/files/patch-target-mips-cpu.h15
2 files changed, 30 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-target-mips-cpu.h b/emulators/qemu-devel/files/patch-target-mips-cpu.h
new file mode 100644
index 000000000000..52d83af15fb2
--- /dev/null
+++ b/emulators/qemu-devel/files/patch-target-mips-cpu.h
@@ -0,0 +1,15 @@
+Index: qemu/target-mips/cpu.h
+@@ -8,6 +8,13 @@
+ #include "config.h"
+ #include "softfloat.h"
+
++#ifdef __FreeBSD__
++#if __FreeBSD__ <= 4
++typedef uint32_t uint_fast8_t;
++typedef uint32_t uint_fast16_t;
++#endif
++#endif
++
+ typedef union fpr_t fpr_t;
+ union fpr_t {
+ double d;
diff --git a/emulators/qemu/files/patch-target-mips-cpu.h b/emulators/qemu/files/patch-target-mips-cpu.h
new file mode 100644
index 000000000000..52d83af15fb2
--- /dev/null
+++ b/emulators/qemu/files/patch-target-mips-cpu.h
@@ -0,0 +1,15 @@
+Index: qemu/target-mips/cpu.h
+@@ -8,6 +8,13 @@
+ #include "config.h"
+ #include "softfloat.h"
+
++#ifdef __FreeBSD__
++#if __FreeBSD__ <= 4
++typedef uint32_t uint_fast8_t;
++typedef uint32_t uint_fast16_t;
++#endif
++#endif
++
+ typedef union fpr_t fpr_t;
+ union fpr_t {
+ double d;