$FreeBSD$ --- ../src/solaris/native/sun/awt/awt_Graphics.c 2010-04-16 21:28:02.000000000 +1100 +++ ../src/solaris/native/sun/awt/awt_Graphics.c 2010-04-16 21:39:52.635333540 +1100 @@ -60,6 +60,10 @@ #include #include #include +#ifndef X_ShmAttach +#include +#include +#endif extern int XShmQueryExtension();