Re: usb_compat_linux.h errors

2014-02-11 Thread Hans Petter Selasky

On 02/11/14 02:05, Joe Nosay wrote:

Referencing at https://forums.freebsd.org/viewtopic.php?f=39t=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
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


usb_compat_linux.h errors

2014-02-10 Thread Joe Nosay
Referencing at https://forums.freebsd.org/viewtopic.php?f=39t=44691#p249459

I'm wondering if the problem is in my system or not.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org