1 The following two patches are needed for Bochs to properly compile and
2 run under Solaris on Sparc. If you're not compiling on Solaris, don't
5 This patch should probably be handled by Autoconf; I'm not sure why it
8 diff -urp orig/bochs-2.1.1/Makefile.in bochs-2.1.1/Makefile.in
9 --- orig/bochs-2.1.1/Makefile.in 2004-02-11 14:28:02.000000000 -0800
10 +++ bochs-2.1.1/Makefile.in 2004-09-13 15:05:26.281550000 -0700
11 @@ -92,7 +92,7 @@ CXX = @CXX@
12 CFLAGS = @CFLAGS@ @GUI_CFLAGS@ $(MCH_CFLAGS) $(FLA_FLAGS) @DEFINE_PLUGIN_PATH@ -DBX_SHARE_PATH='"$(sharedir)"'
13 CXXFLAGS = @CXXFLAGS@ @GUI_CXXFLAGS@ $(MCH_CFLAGS) $(FLA_FLAGS) @DEFINE_PLUGIN_PATH@ -DBX_SHARE_PATH='"$(sharedir)"'
16 +LDFLAGS = @LDFLAGS@ -lsocket
18 # To compile with readline:
19 # linux needs just -lreadline
21 This patch is needed to make GCC accept X.h's frequent use of "extern
22 foo(...)", because use of an implicit int return type is forbidden in
25 diff -urp orig/bochs-2.1.1/gui/Makefile.in bochs-2.1.1/gui/Makefile.in
26 --- orig/bochs-2.1.1/gui/Makefile.in 2003-11-28 07:07:28.000000000 -0800
27 +++ bochs-2.1.1/gui/Makefile.in 2004-09-13 15:05:09.402039000 -0700
28 @@ -44,7 +44,7 @@ SHELL = /bin/sh
32 -CXXFLAGS = $(BX_INCDIRS) @CXXFLAGS@ @GUI_CXXFLAGS@
33 +CXXFLAGS = $(BX_INCDIRS) @CXXFLAGS@ @GUI_CXXFLAGS@ -fms-extensions
38 This patch enables serial ports under Solaris.
40 diff -urp bochs-2.1.1-upstream/iodev/serial.cc bochs-2.1.1/iodev/serial.cc
41 --- tmp/bochs-2.1.1/iodev/serial.cc 2004-02-11 14:28:54.000000000 -0800
42 +++ bochs-2.1.1/iodev/serial.cc 2005-06-01 20:26:01.000000000 -0700
47 -#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__linux__) || defined(__GNU__) || defined(__APPLE__)
48 +#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__linux__) || defined(__GNU__) || defined(__APPLE__) || defined(__sun__)