On Mon, Feb 05, 2007 at 04:40:02PM +0000, Mark Adams wrote: > The following commit: > > revision 1.58 > >date: 2007-01-10 01:57:37 +0000; author: dok; state: Exp; lines: +2 > >-2; comm > >Replaced "#ifndef input_absinfo" which doesn't work > >by "#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)". > > > > has meant that DirectFB no longer compiles for me. > > On my machine (Fedora Core 3), /usr/include/linux/input.h defines > input_absinfo but LINUX_VERSION_CODE (from linux/version.h) refers to > 2.4.20(both include files come from the glibc user space headers and > not the > actual installed kernel). > > Is there another solution here? > > (A quick search reveals a RedHat bug > report<https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=117020>for > this issue with the conclusion being that user space code should not > be > looking at the reported version number. That doesn't help solve the problem > here though!) > > A random sample of linux machines I have access to suggests that versions of > linux/input.h that define the structure also have EVIOCSABS defined but I > wouldn't guarantee that's fool proof either (but it might be a better test > than LINUX_VERSION_CODE).
I added a compile check for 'struct input_absinfo' into configure. That should be fool proof. -- Ville Syrjälä [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
