Re: usb_compat_linux.h errors

From: Hans Petter Selasky <hps_at_bitfrost.no>
Date: Tue, 11 Feb 2014 13:59:52 +0100
On 02/11/14 02:05, Joe Nosay wrote:
> Referencing at https://forums.freebsd.org/viewtopic.php?f=39&t=44691#p249459
>
> I'm wondering if the problem is in my system or not.

Hi,

> 1 warning generated.
> /usr/local/bin/clang -I. -I. -I./../Programs -I../Programs -I./.. -I..    -DHAVE_CONFIG_H -g -O2 -std=gnu99 -Wall -fPIC  -c ./usb_freebsd.c
> In file included from ./usb_freebsd.c:34:
> ./usb_bsd.h:38:21: error: use of undeclared identifier 'USB_SET_TIMEOUT'
>     if (ioctl(file, USB_SET_TIMEOUT, &arg) == -1) {
>                     ^
> ./usb_bsd.h:49:19: error: use of undeclared identifier 'USB_SET_SHORT_XFER'
>   if (ioctl(file, USB_SET_SHORT_XFER, &arg) != -1) return 1;
>                   ^
> ./usb_bsd.h:75:25: error: use of undeclared identifier 'USB_SET_CONFIG'
>   if (ioctl(devx->file, USB_SET_CONFIG, &arg) != -1) return 1;
>                         ^
> ./usb_bsd.h:113:28: error: variable has incomplete type 'struct
>       usb_alt_interface'
>   struct usb_alt_interface arg;
>                            ^
> ./usb_bsd.h:113:10: note: forward declaration of 'struct usb_alt_interface'
>   struct usb_alt_interface arg;
>          ^

This code is for the old user-space USB API.

You need to configure for libusb.

--HPS
Received on Tue Feb 11 2014 - 11:59:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:46 UTC