ftpd-topfield: add patch for 2.6.23 kernel headers
[vuplus_openembedded] / packages / ftpd-topfield / files / usb-header-name-2-6-23.patch
1 --- libtopfield/usb_io.h.orig   2008-12-26 23:11:08.000000000 -0600
2 +++ libtopfield/usb_io.h        2008-12-26 23:24:02.000000000 -0600
3 @@ -36,7 +36,12 @@
4  
5  /* linux/usb_ch9.h wasn't separated out until 2.4.23 */
6  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)
7 +/* and then moved to linux/usb/ch9.h at 2.6.23. */
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
9 +#include <linux/usb/ch9.h>
10 +#else
11  #include <linux/usb_ch9.h>
12 +#endif
13  #else
14  #include <linux/usb.h>
15  #endif