blob: 9d01366a378b19cea5325af05edf3475b94bb073 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$NetBSD: patch-cb,v 1.2 2002/03/04 14:45:14 itohy Exp $
--- interface/low_interface.h.orig Mon Mar 26 15:12:11 2001
+++ interface/low_interface.h Mon Mar 4 22:47:22 2002
@@ -25,6 +25,7 @@
#include <sys/time.h>
#include <sys/types.h>
+#ifdef __linux__
#include <linux/major.h>
#include <linux/version.h>
@@ -47,13 +48,24 @@
#include <linux/cdrom.h>
#include <linux/major.h>
+#endif
+
+#ifdef __NetBSD__
+#include <sys/scsiio.h>
+#include <sys/cdio.h>
+#endif
#include "cdda_interface.h"
#define MAX_RETRIES 8
#define MAX_BIG_BUFF_SIZE 65536
#define MIN_BIG_BUFF_SIZE 4096
+#ifdef __linux__
#define SG_OFF sizeof(struct sg_header)
+#endif
+#ifdef __NetBSD__
+#define SG_OFF sizeof(scsireq_t)
+#endif
#ifndef SG_EMULATED_HOST
/* old kernel version; the check for the ioctl is still runtime, this
|