changeset 1225:52493efeb137

6844750: Solaris build failed after 6799099 Reviewed-by: yan
author dav
date Mon, 25 May 2009 18:22:23 +0400
parents cfe73335a065
children 7da360c3baf6 6f1f159aed75
files src/solaris/native/sun/xawt/XToolkit.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/sun/xawt/XToolkit.c	Fri May 22 16:09:45 2009 +0400
+++ b/src/solaris/native/sun/xawt/XToolkit.c	Mon May 25 18:22:23 2009 +0400
@@ -950,6 +950,7 @@
         devices = XListInputDevices(awt_display, &numDevices);
         for (devIdx = 0; devIdx < numDevices; devIdx++) {
             aDevice = &(devices[devIdx]);
+#ifdef IsXExtensionPointer
             if (aDevice->use == IsXExtensionPointer) {
                 for (clsIdx = 0; clsIdx < aDevice->num_classes; clsIdx++) {
                     if (aDevice->inputclassinfo[clsIdx].class == ButtonClass) {
@@ -961,6 +962,7 @@
                 }
                 break;
             }
+#endif
             if (local_num_buttons <= 0 ) {
                 if (aDevice->use == IsXPointer) {
                     for (clsIdx = 0; clsIdx < aDevice->num_classes; clsIdx++) {