Mercurial > ecos
changeset 2520:901d69d75fc1
Sort out build problems.
| author | bartv |
|---|---|
| date | Wed, 13 Aug 2008 21:56:28 +0000 |
| parents | 997f0b155d30 |
| children | cac2b9a9e6e6 |
| files | packages/io/usb/slave/current/ChangeLog packages/io/usb/slave/current/host/usbchmod.c packages/io/usb/slave/current/host/usbhost.c |
| diffstat | 3 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/io/usb/slave/current/ChangeLog +++ b/packages/io/usb/slave/current/ChangeLog @@ -1,3 +1,9 @@ +2008-08-13 Bart Veer <bartv@ecoscentric.com> + + * host/usbhost.c: insist on the GNU version of strerror_r(). + Use the right header file for current Linux systems. + * host/usbchmod.c: avoid compiler warning. + 2006-05-07 Andrew Lunn <andrew.lunn@ascom.ch> * host/bulk-boundaries.tcl(New): test bulk transfers at
--- a/packages/io/usb/slave/current/host/usbchmod.c +++ b/packages/io/usb/slave/current/host/usbchmod.c @@ -115,7 +115,8 @@ int main(int argc, char** argv) { int bus, dev; - int actual_bus, actual_dev; + int actual_bus = 0; + int actual_dev = 0; char devname[_POSIX_PATH_MAX]; long strtol_tmp1; char* strtol_tmp2;
--- a/packages/io/usb/slave/current/host/usbhost.c +++ b/packages/io/usb/slave/current/host/usbhost.c @@ -67,6 +67,8 @@ /*}}}*/ /*{{{ #include's */ +// To get the desired version of strerror_r() +#define _GNU_SOURCE 1 #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -84,7 +86,7 @@ // Avoid compatibility problems with Tcl 8.4 vs. earlier #define USE_NON_CONST #include <tcl.h> -#include <linux/usb.h> +#include <linux/usb/ch9.h> #include <linux/usbdevice_fs.h> #include "../tests/protocol.h" #include "config.h"
