From ed7cb07d90efadadc3f311fa407e9486729873a5 Mon Sep 17 00:00:00 2001 From: jmz Date: Fri, 25 Feb 2000 20:39:10 +0000 Subject: Fix compilation for pre-cam systems. PR: ports/16986 Submitted by: Nobuyuki Koganemaru --- emulators/mtools/files/patch-f | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 emulators/mtools/files/patch-f (limited to 'emulators/mtools') diff --git a/emulators/mtools/files/patch-f b/emulators/mtools/files/patch-f new file mode 100644 index 000000000000..b100e9cebec7 --- /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 + #endif + +-#if (defined(OS_freebsd)) && (__FreeBSD__ >= 2) ++#if (defined(OS_freebsd)) && (__FreeBSD__ >= 3) + #include + #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; + -- cgit