Re: [PATCH 1/2] usbutils: Fix compile error on Ubuntu 9.04.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 03, 2010 at 04:47:41PM -0500, Alan Stern wrote:
> > > > > +#include <linux/limits.h>
> > > > 
> > > > Odd, what is the error you are getting without this header file being
> > > > included?
> > > 
> > > sarah@broadway:~/git/usbutils$ make lsusb
> > > gcc -DHAVE_CONFIG_H -I.   -I/usr/include/libusb-1.0   -DDATADIR=\"/usr/share\"   -g -O2 -MT lsusb-usbmisc.o -MD -MP -MF .deps/lsusb-usbmisc.Tpo -c -o lsusb-usbmisc.o `test -f 'usbmisc.c' || echo './'`usbmisc.c
> > > usbmisc.c: In function â??readlink_recursiveâ??:
> > > usbmisc.c:44: error: â??PATH_MAXâ?? undeclared (first use in this function)
> > > usbmisc.c:44: error: (Each undeclared identifier is reported only once
> > > usbmisc.c:44: error: for each function it appears in.)
> > > usbmisc.c: In function â??get_usb_deviceâ??:
> > > usbmisc.c:127: error: â??PATH_MAXâ?? undeclared (first use in this function)
> > > make: *** [lsusb-usbmisc.o] Error 1
> > 
> > Odd, ok, we need that so I'll include your patch, wierd that it built at
> > all without it.
> 
> PATH_MAX is standard in POSIX.  All you need is #include <limits.h>.

Yes, you're right.  Updated patch to come.

Sarah Sharp
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux