From fb9bba27b9194913dfe0e4c9ee2a49dd4ab464c2 Mon Sep 17 00:00:00 2001 From: Andrei Dmitriev Date: Mon, 25 May 2009 18:22:23 +0400 Subject: [PATCH] 6844750: Solaris build failed after 6799099 Reviewed-by: yan --- jdk/src/solaris/native/sun/xawt/XToolkit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jdk/src/solaris/native/sun/xawt/XToolkit.c b/jdk/src/solaris/native/sun/xawt/XToolkit.c index d8875ab54f1..6ce5876c544 100644 --- a/jdk/src/solaris/native/sun/xawt/XToolkit.c +++ b/jdk/src/solaris/native/sun/xawt/XToolkit.c @@ -950,6 +950,7 @@ int32_t getNumButtons() { 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 @@ int32_t getNumButtons() { } break; } +#endif if (local_num_buttons <= 0 ) { if (aDevice->use == IsXPointer) { for (clsIdx = 0; clsIdx < aDevice->num_classes; clsIdx++) {