diff --git a/widget/gtk/mozgtk/mozgtk.c b/widget/gtk/mozgtk/mozgtk.c index 677f9b356160..d7dbbc6fd9e3 100644 --- a/widget/gtk/mozgtk/mozgtk.c +++ b/widget/gtk/mozgtk/mozgtk.c @@ -6,7 +6,8 @@ #include "mozilla/Types.h" -#include +#ifdef MOZ_X11 +# include // Bug 1271100 // We need to trick system Cairo into not using the XShm extension due to // a race condition in it that results in frequent BadAccess errors. Cairo @@ -19,3 +20,4 @@ // ever can remove this workaround for system Cairo, we'll need something // to replace it for that purpose. MOZ_EXPORT Bool XShmQueryExtension(Display* aDisplay) { return False; } +#endif