freebsd-dev/sys/dev/usb
Luigi Rizzo 7c1e1cf188 Fix one genuine bug and a potential one:
-#if defined(__FreeBSD__) && __FreeBSD_version__ >= 500023
  +#if defined(__FreeBSD__) && __FreeBSD_version >= 500023

is a genuine bug -- __FreeBSD_version__ does not exist.
The other one:

  -#if (__FreeBSD__ < 5)
  +#if (__FreeBSD_version < 500000)

pops out when you cross-compile the code:

  __FreeBSD__			is a compiler predefine,
  __FreeBSD_version		is defined in <sys/param.h> .

Given that in this case (and all others in sys/dev/usb and sys/i4b)
the goal is to adapt to a different kernel interface, and not to
a compiler feature, I believe the correct form is the second one
(in the best case the two are synonyms so the change does not break
anything anyways).
2002-03-10 08:29:53 +00:00
..
devlist2h.awk
dsbr100io.h Support for USB fm radio. 2002-03-04 03:51:21 +00:00
FILES Support for USB fm radio. 2002-03-04 03:51:21 +00:00
hid.c
hid.h
if_aue.c
if_auereg.h
if_cue.c
if_cuereg.h
if_kue.c
if_kuereg.h
kue_fw.h
Makefile.usbdevs
ohci_pci.c
ohci.c Fix debug printf formats 2002-02-28 00:06:59 +00:00
ohcireg.h
ohcivar.h
rio500_usb.h
udbp.c
udbp.h
ufm.c Fix one genuine bug and a potential one: 2002-03-10 08:29:53 +00:00
ugen.c
uhci_pci.c
uhci.c
uhcireg.h
uhcivar.h
uhid.c
uhub.c
ukbd.c
ulpt.c
umass.c
umodem.c
ums.c
urio.c
usb_ethersubr.c
usb_ethersubr.h
usb_if.m
usb_mem.h
usb_port.h
usb_quirks.c
usb_quirks.h
usb_subr.c
usb.c
usb.h
usbcdc.h
usbdevs
usbdevs_data.h
usbdevs.h
usbdi_util.c
usbdi_util.h
usbdi.c
usbdi.h
usbdivar.h
usbhid.h
uscanner.c