Module Name:    xsrc
Committed By:   tsutsui
Date:           Mon Sep 26 18:04:37 UTC 2011

Modified Files:
        xsrc/external/mit/xf86-input-ws/dist/src: ws.c

Log Message:
Also wrap variables used only in !__NetBSD__ block.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 xsrc/external/mit/xf86-input-ws/dist/src/ws.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-input-ws/dist/src/ws.c
diff -u xsrc/external/mit/xf86-input-ws/dist/src/ws.c:1.7 xsrc/external/mit/xf86-input-ws/dist/src/ws.c:1.8
--- xsrc/external/mit/xf86-input-ws/dist/src/ws.c:1.7	Mon Sep 26 14:47:53 2011
+++ xsrc/external/mit/xf86-input-ws/dist/src/ws.c	Mon Sep 26 18:04:36 2011
@@ -501,7 +501,9 @@ wsDeviceOn(DeviceIntPtr pWS)
 {
 	InputInfoPtr pInfo = (InputInfoPtr)pWS->public.devicePrivate;
 	WSDevicePtr priv = (WSDevicePtr)pInfo->private;
+#ifndef __NetBSD__
 	struct wsmouse_calibcoords coords;
+#endif
 
 	DBG(1, ErrorF("WS DEVICE ON\n"));
 	if ((pInfo->fd < 0) && (wsOpen(pInfo) != Success)) {
@@ -549,7 +551,9 @@ wsDeviceOff(DeviceIntPtr pWS)
 {
 	InputInfoPtr pInfo = (InputInfoPtr)pWS->public.devicePrivate;
 	WSDevicePtr priv = pInfo->private;
+#ifndef __NetBSD__
 	struct wsmouse_calibcoords coords;
+#endif
 
 	DBG(1, ErrorF("WS DEVICE OFF\n"));
 	wsmbEmuFinalize(pInfo);

Reply via email to