Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 2014 13:59:52 +0100
From:      Hans Petter Selasky <hps@bitfrost.no>
To:        Joe Nosay <superbisquit@gmail.com>,  freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: usb_compat_linux.h errors
Message-ID:  <52FA1EC8.80902@bitfrost.no>
In-Reply-To: <CA%2BWntOu-bc8rdHq-O-oxtp1hbo-XFW8MQ%2BPX6aeLNLZN5BxJ7g@mail.gmail.com>
References:  <CA%2BWntOu-bc8rdHq-O-oxtp1hbo-XFW8MQ%2BPX6aeLNLZN5BxJ7g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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