[PATCH synaptics] Fix build error if HAVE_MTDEV is false

Peter Hutterer peter.hutterer at who-t.net
Thu Feb 16 17:47:06 PST 2012


priv->has_touch is conditional on HAVE_MTDEV

Introduced in f9a906590e59383aef3c53faca98f0de40859f17

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/eventcomm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/eventcomm.c b/src/eventcomm.c
index e97faa8..6147e41 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -410,6 +410,7 @@ event_query_axis_ranges(InputInfoPtr pInfo)
 		      &priv->minw, &priv->maxw,
 		      NULL, NULL);
 
+#if HAVE_MTDEV
     if (priv->has_touch)
     {
         int st_minx = priv->minx;
@@ -429,6 +430,7 @@ event_query_axis_ranges(InputInfoPtr pInfo)
         proto_data->st_to_mt_scale_y =
             (priv->maxy - priv->miny) / (st_maxy - st_miny);
     }
+#endif
 
     SYSCALL(rc = ioctl(pInfo->fd, EVIOCGBIT(EV_KEY, sizeof(keybits)), keybits));
     if (rc >= 0)
-- 
1.7.7.5



More information about the xorg-devel mailing list