Re: [AD] configury bits for linux/input.h

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> 4.1.9 did not compile on 2.2.x, I hadn't tried Annie's patch
> for EVDEV. This fixes it.

Thanks. Just one nit:

diff -r -u allegro-4.1.9/src/linux/lmseev.c 
allegro-4.1.9-input/src/linux/lmseev.c
--- allegro-4.1.9/src/linux/lmseev.c	Sun Jan 26 17:22:56 2003
+++ allegro-4.1.9-input/src/linux/lmseev.c	Thu Jan 30 21:54:22 2003
@@ -28,6 +28,9 @@
 
 #include <stdio.h>
 #include <sys/ioctl.h>
+
+#ifdef HAVE_LINUX_INPUT_H
+
 #include <linux/input.h>
 
 /* linux/input.h also define KEY_A, etc. Just like Allegro :( */


You can't put tests for configure-defined symbols like HAVE_LINUX_INPUT_H 
before #include "allegro.h".

Applied with this correction.

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/