Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  2 Mar 2009 08:08:10 -0900 (AKST)
From:      Mel Flynn <mel@rachie.is-a-geek.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        MAINTAINER <ports@FreeBSD.org>
Subject:   [PATCH] Make graphics/sane-backends work on -CURRENT
Message-ID:  <20090302170811.5C85184445@smoochies.rachie.is-a-geek.net>

next in thread | raw e-mail | index | archive | help

>Submitter-Id:	current-users
>Originator:	Mel Flynn
>Confidential:	no 
>Synopsis:	[PATCH] Make graphics/sane-backends work on -CURRENT
>Severity:	serious
>Priority:	medium
>Category:	ports
>Class:		sw-bug
>Release:	FreeBSD 8.0-CURRENT i386
>Environment:
System: FreeBSD smoochies.wlan.rachie.is-a-geek.net 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Sat Feb 28 17:05:35 AKST 2009 mel@smoochies.wlan.rachie.is-a-geek.net:/usr/obj/usr/src/sys/SMOOCHIES i386


	
>Description:
Use legacy usb until proper fix is done upstream.
>How-To-Repeat:
on -CURRENT after usb2 import, make -C /usr/ports/graphics/sane-backends build
>Fix:

New file to be added in files/

--- patch-sanei_sanei_usb.c begins here ---
--- sanei/sanei_usb.c.orig	2007-11-15 23:46:32.000000000 -0900
+++ sanei/sanei_usb.c	2009-03-02 07:58:37.000000000 -0900
@@ -88,7 +88,12 @@
 #endif /* HAVE_USBCALLS */
 
 #if defined (__FreeBSD__) 
+#include <sys/param.h>
+#if __FreeBSD_version+0 >= 800064
+#include <legacy/dev/usb/usb.h>
+#else
 #include <dev/usb/usb.h>
+#endif
 #endif /* __FreeBSD__ */
 #if defined (__DragonFly__)
 #include <bus/usb/usb.h>
--- patch-sanei_sanei_usb.c ends here ---





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090302170811.5C85184445>