$NetBSD: patch-aa,v 1.9 2005/09/27 09:29:56 wiz Exp $

--- include/sane/sanei_backend.h.orig	2004-11-13 21:50:48.000000000 +0100
+++ include/sane/sanei_backend.h
@@ -16,7 +16,7 @@
  * Compiler related options
  */
 
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__NetBSD__)
 
 /* __unused tells the compiler a variable is unused, so the
  * compiler doesn't spit a warning. */
