synaptics development?

Lukas Hejtmanek xhejtman at ics.muni.cz
Tue Dec 18 05:48:10 PST 2007


On Tue, Dec 18, 2007 at 02:41:23PM +0100, Hanno Böck wrote:
> Is there somewhere up-to-date-code for the synaptics driver? Last thing I 
> heared was some relicensing efforts.
> 
> Latest synaptics-git doesn't compile against xserver-head (wrong path for 
> pixman.h include and still deps on libc wrapper).

this is trivial fix. but more serious is that it does not work with
xserver-head (the server complains that xf86OpenSerial has been called without
device).

using this, you can get it compiled if you add -I/usr/include/pixman-1 into the Makefile.

diff --git a/synaptics.c b/synaptics.c
index 802132c..63e8971 100644
--- a/synaptics.c
+++ b/synaptics.c
@@ -70,7 +70,7 @@
 #include <misc.h>
 #include <xf86.h>
 #define NEED_XF86_TYPES
-#include <xf86_ansic.h>
+#include <xorg/xf86_ansic.h>
 #include <xf86_OSproc.h>
 #include <xf86Xinput.h>
 #include "mipointer.h"
@@ -491,16 +491,12 @@ SynapticsPreInit(InputDriverPtr drv, IDevPtr dev, int flag
     priv->fifofd = -1;
     if (repeater) {
        /* create repeater fifo */
-       if ((xf86mknod(repeater, 666, XF86_S_IFIFO) != 0) &&
-           (xf86errno != xf86_EEXIST)) {
-           xf86Msg(X_ERROR, "%s can't create repeater fifo\n", local->name);
-       } else {
+       xf86mknod(repeater, 666, XF86_S_IFIFO);
            /* open the repeater fifo */
            optList = xf86NewOption("Device", repeater);
            if ((priv->fifofd = xf86OpenSerial(optList)) == -1) {
                xf86Msg(X_ERROR, "%s repeater device open failed\n", local->name
            }
-       }
        xf86free(repeater);
     }
 


-- 
Lukáš Hejtmánek



More information about the xorg mailing list