6897844: Fix broken build on newer versions of X11 (libXext >= 1.1.0)
authorandrew
Tue, 03 Nov 2009 23:23:15 +0000
changeset 4251 7d3154406018
parent 4250 e88776b21913
child 4252 0e645080f74b
6897844: Fix broken build on newer versions of X11 (libXext >= 1.1.0) Summary: Recent changes to X11's header structure break the build Reviewed-by: prr, flar
jdk/src/solaris/native/sun/awt/awt_GraphicsEnv.h
--- a/jdk/src/solaris/native/sun/awt/awt_GraphicsEnv.h	Fri Oct 30 19:19:35 2009 +0100
+++ b/jdk/src/solaris/native/sun/awt/awt_GraphicsEnv.h	Tue Nov 03 23:23:15 2009 +0000
@@ -42,6 +42,10 @@
 #include <sys/ipc.h>
 #include <sys/shm.h>
 #include <X11/extensions/XShm.h>
+#ifndef X_ShmAttach
+#include <X11/Xmd.h>
+#include <X11/extensions/shmproto.h>
+#endif
 
 extern int XShmQueryExtension();