summaryrefslogtreecommitdiffstats
path: root/emulators/mtools
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>2000-02-25 20:39:10 +0000
committerjmz <jmz@FreeBSD.org>2000-02-25 20:39:10 +0000
commited7cb07d90efadadc3f311fa407e9486729873a5 (patch)
tree0c166a186b8e62c0f8864e0ea1f328de1a46759b /emulators/mtools
parent2338a151b5f93f0077c407217e8593f75c4fc0d4 (diff)
downloadFreeBSD-ports-ed7cb07d90efadadc3f311fa407e9486729873a5.zip
FreeBSD-ports-ed7cb07d90efadadc3f311fa407e9486729873a5.tar.gz
Fix compilation for pre-cam systems.
PR: ports/16986 Submitted by: Nobuyuki Koganemaru <kogane@koganemaru.co.jp>
Diffstat (limited to 'emulators/mtools')
-rw-r--r--emulators/mtools/files/patch-f30
1 files changed, 30 insertions, 0 deletions
diff --git a/emulators/mtools/files/patch-f b/emulators/mtools/files/patch-f
new file mode 100644
index 0000000..b100e9c
--- /dev/null
+++ b/emulators/mtools/files/patch-f
@@ -0,0 +1,30 @@
+--- scsi.c.orig Tue Mar 16 03:11:18 1999
++++ scsi.c Sat Feb 26 00:48:35 2000
+@@ -49,7 +49,7 @@
+ #include <sys/scsicmd.h>
+ #endif
+
+-#if (defined(OS_freebsd)) && (__FreeBSD__ >= 2)
++#if (defined(OS_freebsd)) && (__FreeBSD__ >= 3)
+ #include <camlib.h>
+ #endif
+
+@@ -64,7 +64,7 @@
+
+ int scsi_open(const char *name, int flag, int mode, void **extra_data)
+ {
+-#if (defined(OS_freebsd)) && (__FreeBSD__ >= 2)
++#if (defined(OS_freebsd)) && (__FreeBSD__ >= 3)
+ struct cam_device *cam_dev;
+ cam_dev = cam_open_device(name, O_RDWR);
+ *extra_data = (void *) cam_dev;
+@@ -224,7 +224,7 @@
+ }
+
+ return 0;
+-#elif (defined OS_freebsd) && (__FreeBSD__ >= 2)
++#elif (defined OS_freebsd) && (__FreeBSD__ >= 3)
+ #define MSG_SIMPLE_Q_TAG 0x20 /* O/O */
+ union ccb *ccb;
+ int flags;
+
OpenPOWER on IntegriCloud