On Sun, 23 Jan 2005, Gabriel Velo wrote: >Hello. > >I realized that the jar javax-usb-ri-linux_0.10.6 can't compile for >2.5.x and 2.6.x kernel because the change of some struct in the >usbdevice_fs.h header. > >usbdevfs_ctrltransfer was redefined to > >struct usbdevfs_ctrltransfer { > __u8 bRequestType; > __u8 bRequest; > __u16 wValue; > __u16 wIndex; > __u16 wLength; > __u32 timeout; /* in milliseconds */ > void __user *data; >}; > >all its fields was renamed but in JavaxUsbActive.c are the old names >still.
ah, yes they have. Ok I fixed it in CVS. Thanks! > >When I tried to fix it I found that in JavaUsbKernel we are determining >the kernel version at runtime by setKernelVersion. Why doesn't we >determine it at compile time with linux/version.h and the >LINUX_VERSION_CODE and KERNEL_VERSION macros? Because then you would have a JNI library that only worked for that specific kernel version. Wouldn't you rather have a JNI library that works for all kernel versions regardless of what version it was compiled with? -- Dan Streetman [EMAIL PROTECTED] --------------------- 186,272 miles per second: It isn't just a good idea, it's the law! ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel