Basic Eraser support.
[pintos-anon] / src / misc / bochs-2.1.1-solaris.patch
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
3 apply them.
4
5 This patch should probably be handled by Autoconf; I'm not sure why it
6 isn't.
7
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)"'
14  
15 -LDFLAGS = @LDFLAGS@
16 +LDFLAGS = @LDFLAGS@ -lsocket
17  LIBS = @LIBS@
18  # To compile with readline:
19  #   linux needs just -lreadline
20
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
23 C++.
24
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
29  @SET_MAKE@
30  
31  CXX = @CXX@
32 -CXXFLAGS = $(BX_INCDIRS) @CXXFLAGS@  @GUI_CXXFLAGS@
33 +CXXFLAGS = $(BX_INCDIRS) @CXXFLAGS@  @GUI_CXXFLAGS@ -fms-extensions
34  LOCAL_CXXFLAGS =
35  LDFLAGS = @LDFLAGS@
36  LIBS = @LIBS@
37
38 This patch enables serial ports under Solaris.
39
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
43 @@ -53,7 +53,7 @@
44  #endif
45  #endif
46  
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__)
49  #define SERIAL_ENABLE
50  #endif
51