OSDN Git Service

Another patch from Chris Larson, to make sure EV_SYN is defined even for
authorDouglas Lowder <douglowder@mac.com>
Thu, 22 Jul 2004 02:19:13 +0000 (19:19 -0700)
committerDouglas Lowder <douglowder@mac.com>
Thu, 22 Jul 2004 02:19:13 +0000 (19:19 -0700)
2.4 kernels....

-Doug Lowder <douglowder@mac.com>

ChangeLog
plugins/input-raw.c

index 80ff66f..4fd537a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-07-08 Chris Larson <kergoth@handhelds.org>
+
+       * plugins/input-raw.c: As EV_SYN can be checked for at runtime rather
+         than build time, #define it when compiling against kernel headers
+         that do not define it (2.4).
+
 2004-01-26 Andrew Zabolotny <zap@homelink.ru>
 
        * README: Updated documentation on module parameters.
index 3248737..942847f 100644 (file)
@@ -10,7 +10,7 @@
  * This file is placed under the LGPL.  Please see the file
  * COPYING for more details.
  *
- * $Id: input-raw.c,v 1.1 2004/07/21 19:17:18 dlowder Exp $
+ * $Id: input-raw.c,v 1.2 2004/07/21 19:19:13 dlowder Exp $
  *
  * Read raw pressure, x, y, and timestamp from a touchscreen device.
  */
 #include <sys/types.h>
 
 #include <linux/input.h>
+#ifdef TSLIB_INPUT_EVSYN
+# ifndef EV_SYN /* 2.4 kernel headers */
+#  define EV_SYN 0x00
+# endif
+#endif
 
 #include "tslib-private.h"