diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2008-09-05 23:01:45 +0930 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-09-05 23:02:09 +0930 |
commit | 0775d5de903a604b013ec53f78fb8976bd90548d (patch) | |
tree | 6d03ce23e6319b0db3647c8c6417650bc44d63ed /src/synaptics.c | |
parent | 4c31e0e6bcf761c9d2d950545bf760d08149f96f (diff) |
Fix build if we don't enable BUILD_EVENTCOMM.
Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com>
Diffstat (limited to 'src/synaptics.c')
-rw-r--r-- | src/synaptics.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index 774c804..f4c3043 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -179,8 +179,10 @@ SetDeviceAndProtocol(LocalDevicePtr local) xf86SetStrOption(local->options, "Device", device); } if (device && strstr(device, "/dev/input/event")) { +#ifdef BUILD_EVENTCOMM /* trust the device name if we've been given one */ proto = SYN_PROTO_EVENT; +#endif } else { str_par = xf86FindOptionValue(local->options, "Protocol"); if (str_par && !strcmp(str_par, "psaux")) { @@ -196,8 +198,10 @@ SetDeviceAndProtocol(LocalDevicePtr local) } else if (str_par && !strcmp(str_par, "alps")) { proto = SYN_PROTO_ALPS; } else { /* default to auto-dev */ +#ifdef BUILD_EVENTCOMM if (event_proto_operations.AutoDevProbe(local)) proto = SYN_PROTO_EVENT; +#endif } } switch (proto) { |