$NetBSD: patch-cb,v 1.1.1.1 2000/01/19 08:03:00 itohy Exp $ --- interface/low_interface.h.orig Thu Dec 2 16:19:53 1999 +++ interface/low_interface.h Sun Jan 16 18:48:11 2000 @@ -25,6 +25,7 @@ #include #include +#ifdef __linux__ #include #include @@ -48,13 +49,24 @@ #include #include +#endif + +#ifdef __NetBSD__ +#include +#include +#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