Blame patches/bochs-2.6.9.local.patch

c4eec2
diff -ru bochs-2.6.9.orig/main.cc bochs-2.6.9/main.cc
c4eec2
--- bochs-2.6.9.orig/main.cc    2017-02-18 17:28:04.318635000 +0100
c4eec2
+++ bochs-2.6.9/main.cc 2021-07-18 01:15:37.859411673 +0200
c4eec2
@@ -1525,5 +1525,9 @@
c4eec2
   }
c4eec2
 #endif
c4eec2
c4eec2
+  /* FIXME: this works, but definitely isn't right! */
c4eec2
+  if(signum == 0)
c4eec2
+    return;
c4eec2
+
c4eec2
   BX_PANIC(("SIGNAL %u caught", signum));
c4eec2
 }
c4eec2
diff -ru bochs-2.6.9.orig/configure bochs-2.6.9/configure
c4eec2
--- bochs-2.6.9.orig/configure  2017-04-09 08:46:13.780213000 +0200
c4eec2
+++ bochs-2.6.9/configure       2021-07-17 23:41:23.537634378 +0200
c4eec2
@@ -23665,7 +23665,7 @@
c4eec2
c4eec2
   fi
c4eec2
   case "$target" in
c4eec2
-    *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw32*)
c4eec2
+    *-pc-windows* | *-pc-winnt* | *-cygwin* | *-mingw32* | *-midipix*)
c4eec2
     NETLOW_OBJS="$NETLOW_OBJS eth_win32.o"
c4eec2
     ethernet_modules="$ethernet_modules win32"
c4eec2
     $as_echo "#define BX_NETMOD_WIN32 1" >>confdefs.h
c4eec2
@@ -24629,10 +24629,10 @@
c4eec2
   SPECIFIC_GUI_OBJS="$SPECIFIC_GUI_OBJS \$(GUI_OBJS_SDL)"
c4eec2
   # GUI_*FLAGS are added to the compilation of every bochs file, not just
c4eec2
   # the files in gui/*.cc.
c4eec2
-  SDL_CFLAGS=`sdl-config --cflags`
c4eec2
+  SDL_CFLAGS=`$PKG_CONFIG --cflags sdl`
c4eec2
   GUI_CFLAGS="$GUI_CFLAGS $SDL_CFLAGS"
c4eec2
   GUI_CXXFLAGS="$GUI_CXXFLAGS $SDL_CFLAGS"
c4eec2
-  GUI_LINK_OPTS_SDL="`sdl-config --libs`"
c4eec2
+  GUI_LINK_OPTS_SDL=`$PKG_CONFIG --libs sdl`
c4eec2
   GUI_LINK_OPTS="$GUI_LINK_OPTS \$(GUI_LINK_OPTS_SDL)"
c4eec2
   # The enhanced X debugger depends on GTK2
c4eec2
   if test "$gui_debugger" = 1 -a "$DEFAULT_GUI" != win32; then
Lucio Andrés Illanes Albornoz ebafa9
diff -ru bochs-2.6.9.orig/gui/term.cc bochs-2.6.9/gui/term.cc
Lucio Andrés Illanes Albornoz ebafa9
--- bochs-2.6.9.orig/gui/term.cc	2017-01-15 12:44:43.207284000 +0100
Lucio Andrés Illanes Albornoz ebafa9
+++ bochs-2.6.9/gui/term.cc	2019-11-04 21:23:25.102021241 +0100
Lucio Andrés Illanes Albornoz ebafa9
@@ -29,7 +29,7 @@
Lucio Andrés Illanes Albornoz ebafa9
 #if BX_WITH_TERM
Lucio Andrés Illanes Albornoz ebafa9
 
Lucio Andrés Illanes Albornoz ebafa9
 extern "C" {
Lucio Andrés Illanes Albornoz ebafa9
-#include <curses.h>
Lucio Andrés Illanes Albornoz ebafa9
+#include <ncurses.h>
Lucio Andrés Illanes Albornoz ebafa9
 #include <signal.h>
Lucio Andrés Illanes Albornoz ebafa9
 };
Lucio Andrés Illanes Albornoz ebafa9