[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [bug #41854] avrdude 6.1 does not compile on systems witho
From: |
Didrik Madheden |
Subject: |
[avrdude-dev] [bug #41854] avrdude 6.1 does not compile on systems without libUSB |
Date: |
Fri, 21 Mar 2014 12:15:38 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36 |
Follow-up Comment #4, bug #41854 (project avrdude):
Luckily, this can be fixed by stubbing only 3 files, dfu.c, and flip1.c and
flip2.c which both depend on dfu.c.
dfu.c already had stubs for #ifndef HAVE_LIBUSB, replacing the libusb
function, but those didn't match the exports. Fixed this.
Stubbed the external functions in flip1.c and flip2.c completely for the
ifndef case, as they touch USB internals and ultimately rely on structs
defined in the libusb headers. Maybe it would be better to duplicate
flip1/2_initpgm into the ifndef case and only provide a stub for pgm->open,
but in case this is bad form, I left stubs for all the functions.
(file #30986, file #30987, file #30988)
_______________________________________________________
Additional Item Attachment:
File name: dfu.c Size:14 KB
File name: flip1.c Size:27 KB
File name: flip2.c Size:28 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?41854>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/