emulators/bochs: Fix build

This commit is contained in:
Neel Chauhan 2025-02-24 20:36:44 -05:00
parent a32b5b9b01
commit a613e66a54
2 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,11 @@
--- gui/keymap.cc.orig 2025-02-25 01:36:13 UTC
+++ gui/keymap.cc
@@ -96,7 +96,7 @@ bx_keymap_c::~bx_keymap_c(void)
keymapCount = 0;
}
-#if defined(WIN32) || defined(__ANDROID__)
+#if defined(WIN32) || defined(__ANDROID__) || defined(__FreeBSD__)
char* basename(char *path)
{
char *ptr;

View file

@ -1,5 +1,5 @@
--- ./iodev/network/eth_slirp.cc.orig 2025-02-16 04:15:29.000000000 -0500 --- iodev/network/eth_slirp.cc.orig 2025-02-16 09:15:29 UTC
+++ ./iodev/network/eth_slirp.cc 2025-02-18 21:26:22.200515000 -0500 +++ iodev/network/eth_slirp.cc
@@ -20,6 +20,11 @@ @@ -20,6 +20,11 @@
// eth_slirp.cc - Bochs port of Qemu's slirp implementation (updated from libslirp 4.8.0) // eth_slirp.cc - Bochs port of Qemu's slirp implementation (updated from libslirp 4.8.0)
// Portion of this software comes with the following license: BSD-3-Clause // Portion of this software comes with the following license: BSD-3-Clause