$OpenBSD: patch-interface_low_interface_h,v 1.2 2002/09/16 13:35:52 lebel Exp $ --- interface/low_interface.h.orig Mon Mar 26 08:12:11 2001 +++ interface/low_interface.h Sat Sep 7 20:49:33 2002 @@ -25,6 +25,7 @@ #include #include +#ifdef __linux__ #include #include @@ -47,13 +48,24 @@ #include #include +#endif + +#if defined(__NetBSD__) || defined(__OpenBSD__) +#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 +#if defined(__NetBSD__) || defined(__OpenBSD__) +#define SG_OFF sizeof(scsireq_t) +#endif #ifndef SG_EMULATED_HOST /* old kernel version; the check for the ioctl is still runtime, this