[PATCH synaptics] Fix build error if HAVE_MTDEV is false

Jeremy Huddleston jeremyhu at apple.com
Thu Feb 16 22:42:18 PST 2012


Reviewed-by: Jeremy Huddleston <jeremyhu at apple.com>

On Feb 16, 2012, at 5:47 PM, Peter Hutterer <peter.hutterer at who-t.net> wrote:

> 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
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
> 



More information about the xorg-devel mailing list