--- x11.c.old 2009-11-19 12:27:42.000000000 +0100 +++ x11.c 2009-11-19 13:32:41.000000000 +0100 @@ -102,6 +102,10 @@ #include #include #include +#ifndef X_ShmAttach +#include +#include +#endif #endif #endif /* HAVE_X */