diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2015-07-18 16:51:08 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2015-07-18 16:51:08 +0000 |
commit | d798c6aea83983e3d0b33bd13c293d4fbb3ddcff (patch) | |
tree | 1109b98047dd90ef44c79cc04d0230c106ea5b85 /devel/android-tools-fastboot-devel/files/Makefile | |
parent | devel/android-tools-{adb,fastboot}-devel: update to m.p.190 (diff) |
devel/android-tools-fastboot-devel: move FreeBSD code to C++
Copy files in order to fix the following errors.
files/usb_freebsd.cpp:132:4: error: assigning to 'usb_handle *' from incompatible type 'void *'
h = malloc(sizeof(*h));
^ ~~~~~~~~~~~~~~~~~~
files/usb_freebsd.cpp:162:6: error: no matching function for call to 'libusb_bulk_transfer'
if (libusb_bulk_transfer(h->handle, h->ep_out, (void *)(long)_data, len, &actlen, 0) < 0)
^~~~~~~~~~~~~~~~~~~~
/usr/include/libusb.h:478:5: note: candidate function not viable: cannot convert argument of incomplete type 'void *' to 'uint8_t *' (aka 'unsigned char *')
int libusb_bulk_transfer(libusb_device_handle * devh, uint8_t endpoint, uint8_t *data, int length, int *transferred, uint32_t timeout);
^
files/usb_freebsd.cpp:172:6: error: no matching function for call to 'libusb_bulk_transfer'
if (libusb_bulk_transfer(h->handle, h->ep_in, _data, len, &actlen, 0) < 0)
^~~~~~~~~~~~~~~~~~~~
/usr/include/libusb.h:478:5: note: candidate function not viable: cannot convert argument of incomplete type 'void *' to 'uint8_t *' (aka 'unsigned char *')
int libusb_bulk_transfer(libusb_device_handle * devh, uint8_t endpoint, uint8_t *data, int length, int *transferred, uint32_t timeout);
^
3 errors generated.
fastboot.o: In function `find_item(char const*, char const*)':
fastboot.cpp:(.text+0xea): undefined reference to `get_my_path'
Notes
Notes:
svn path=/head/; revision=392432
Diffstat (limited to 'devel/android-tools-fastboot-devel/files/Makefile')
-rw-r--r-- | devel/android-tools-fastboot-devel/files/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/android-tools-fastboot-devel/files/Makefile b/devel/android-tools-fastboot-devel/files/Makefile index 443dd2d1d5b4..27e868ac5e0c 100644 --- a/devel/android-tools-fastboot-devel/files/Makefile +++ b/devel/android-tools-fastboot-devel/files/Makefile @@ -11,8 +11,8 @@ SRCS+= protocol.cpp SRCS+= util.cpp .PATH: ${FILESDIR} -SRCS+= usb_freebsd.c -SRCS+= util_freebsd.c +SRCS+= usb_freebsd.cpp +SRCS+= util_freebsd.cpp # required by libziparchive .PATH: ${.CURDIR}/../base |