$NetBSD: patch-cdripper_h,v 1.1.1.1 2010/02/02 02:01:54 phonohawk Exp $

--- plugins/cdripper/cdripper.h.orig	2010-02-01 08:26:23.000000000 +0000
+++ plugins/cdripper/cdripper.h
@@ -24,7 +24,9 @@
 
 #include "pluginaclient.h"
 
-#include <linux/cdrom.h>
+#if defined(HAVE_LINUX_CDROM_H)
+#  include <linux/cdrom.h>
+#endif
 
 #define NFRAMES    2
 #define FRAMESIZE  2352
@@ -58,7 +60,9 @@ public:
 	int close_drive();
 
 // Current state of process_loop
+#if defined(HAVE_LINUX_CDROM_H)
 	struct cdrom_read_audio arg;
+#endif
 	int FRAME;    // 2 bytes 2 channels
 	int previewing;     // defeat bug in hardware
 	int64_t fragment_length;
