summaryrefslogtreecommitdiffstats
path: root/emulators/bochs
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-01-14 09:08:05 +0000
committerobrien <obrien@FreeBSD.org>2000-01-14 09:08:05 +0000
commitdd89395b4b28404c2a864f21dbbe1325f94a5c0b (patch)
tree3f380a0e84415c7bb385be12253703d1d45bd7ea /emulators/bochs
parentbe4bc83f4a3363d217919debf8354a983815f427 (diff)
downloadFreeBSD-ports-dd89395b4b28404c2a864f21dbbe1325f94a5c0b.zip
FreeBSD-ports-dd89395b4b28404c2a864f21dbbe1325f94a5c0b.tar.gz
Support the "seeing" of CDROM drives.
[However, Win95 running in bochs still can't "see" the CD] Submitted by: Mark Ovens <mark@dogma.freebsd-uk.eu.org>
Diffstat (limited to 'emulators/bochs')
-rw-r--r--emulators/bochs/files/patch-ad38
1 files changed, 38 insertions, 0 deletions
diff --git a/emulators/bochs/files/patch-ad b/emulators/bochs/files/patch-ad
new file mode 100644
index 0000000..2f299ea
--- /dev/null
+++ b/emulators/bochs/files/patch-ad
@@ -0,0 +1,38 @@
+--- iodev/cdrom.cc.orig Thu Nov 11 21:44:52 1999
++++ iodev/cdrom.cc Fri Jan 14 00:59:58 2000
+@@ -34,7 +34,7 @@
+ }
+ #endif
+
+-#ifdef __OpenBSD__
++#if (defined(__OpenBSD__) || defined(__FreeBSD__))
+ // Here is a diff for cdrom.cc which adds support for OpenBSD.
+ //
+ // Note that since the i386 sys/disklabel.h contains code which c++ considers
+@@ -134,7 +134,7 @@
+ // some ioctl() calls to really eject the CD as well.
+
+ if (fd >= 0) {
+-#ifdef __OpenBSD__
++#if (defined(__OpenBSD__) || defined(__FreeBSD__))
+ (void) ioctl (fd, CDIOCALLOW);
+ if (ioctl (fd, CDIOCEJECT) < 0)
+ fprintf(stderr, "#eject_cdrom: eject returns error.\n");
+@@ -240,7 +240,7 @@
+
+ return true;
+ }
+-#elif defined(__OpenBSD__)
++#elif (defined(__OpenBSD__) || defined(__FreeBSD__))
+ {
+ struct ioc_toc_header h;
+ struct ioc_read_toc_entry t;
+@@ -353,7 +353,7 @@
+ fprintf(stderr, "#cdrom: capacity: %u\n", nr_sects);
+ return(nr_sects);
+ }
+-#elif defined(__OpenBSD__)
++#elif (defined(__OpenBSD__) || defined(__FreeBSD__))
+ {
+ // We just read the disklabel, imagine that...
+ struct disklabel lp;
OpenPOWER on IntegriCloud