Messages in this thread Patch in this message | | | Subject | Re: [kernel] Re: [announce] Linux Input Driver suite version 0.1.0 | From | "James H. Cloos Jr." <> | Date | 07 Jun 1999 04:15:02 -0500 |
| |
>>>>> "Vojtech" == Vojtech Pavlik <vojtech@twilight.ucw.cz> writes:
>> Also, evtest.c won't compile on my RH5.2 based system. evtest.c >> includes <linux/input.h> which includes <linux/time.h> and >> <asm/types.h>. There are a number of conflicts between the glibc >> and kernel headers. I hacked a local copy of input.h to get it >> compiled.
Vojtech> Could you send me the patches you did? I still use libc5 and Vojtech> that doesn't give me any trouble.
Sure. The first os obvious and the latter just flattens out the necessary bits of input.h's sub-includes:
====================================================================== # diff -U2 evtest.c.~1~ evtest.c --- evtest.c.~1~ Mon Jun 7 04:11:49 1999 +++ evtest.c Sun Jun 6 22:13:48 1999 @@ -27,5 +27,5 @@ */ -#include <linux/input.h> +#include "input.h" #include <fcntl.h> #include <unistd.h> ====================================================================== --- /usr/src/linux/include/linux/input.h Sun Jun 6 18:54:41 1999 +++ input.h Sun Jun 6 22:20:25 1999 @@ -1,8 +1,21 @@ #ifndef _INPUT_H #define _INPUT_H -#include <linux/time.h> -#include <asm/types.h> +typedef __signed__ char __s8; +typedef unsigned char __u8; + +typedef __signed__ short __s16; +typedef unsigned short __u16; + +typedef __signed__ int __s32; +typedef unsigned int __u32; + +typedef long time_t; +typedef long suseconds_t; +struct timeval { + time_t tv_sec; /* seconds */ + suseconds_t tv_usec; /* microseconds */ +}; struct input_event { struct timeval time; ====================================================================== This is very much a kludge, but it get's the file compiled..... -JimC -- James H. Cloos, Jr. <http://www.jhcloos.com/cloos/public_key> 1024D/ED7DAEA6 <cloos@jhcloos.com> E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |