pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
x11/xf86-input-ws is broken for NetBSD 9
Hi,
On NetBSD 9 pkgsrc/x11/xf86-input-ws i,s broken for two months (and modular-xorg-drivers and modular-xorg also broken). Because, NetBSD 9 doesn't have WSCONS_EVENT_HSCROLL and WSCONS_EVENT_VSCROLL (but NetBSD current has for 10 months).
To be able to compile xf86-input-ws, I modified pkgsrc/x11/xf86-input-ws/patches/patch-src_ws.c
Can anyone submit changes below (or alternative solution for the problem)?
Thanks,
Mustafa Dogan
@@ -611,17 +610,23 @@ wsReadHwState(InputInfoPtr pInfo, wsHwSt
case WSCONS_EVENT_MOUSE_ABSOLUTE_W:
/* ignore those */
continue;
+#ifdef WSCONS_EVENT_SYNC
case WSCONS_EVENT_SYNC:
DBG(4, ErrorF("Sync\n"));
return TRUE;
+#endif
+#ifdef WSCONS_EVENT_HSCROLL
case WSCONS_EVENT_HSCROLL:
hw->hscroll = event->value;
DBG(4, ErrorF("Horiz. Scrolling %d\n", event->value));
return TRUE;
+#endif
+#ifdef WSCONS_EVENT_VSCROLL
case WSCONS_EVENT_VSCROLL:
hw->vscroll = event->value;
DBG(4, ErrorF("Vert. Scrolling %d\n", event->value));
return TRUE;
+#endif
default:
Home |
Main Index |
Thread Index |
Old Index