Bug 1772719 - fix wayland-only build with mesa X11 support r=stransky

this patch fixes building firefox with
--enable-default-toolkit=cairo-gtk3-wayland-only when system mesa is build
with X11 support.

Without this patch, it only builds with mesa built without X11 support.

Differential Revision: https://phabricator.services.mozilla.com/D148347
This commit is contained in:
ganguin 2022-06-07 11:09:40 +00:00
Родитель 502017c6cb
Коммит 6f3c06c869
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -35,12 +35,15 @@
#include "mozilla/SchedulerGroup.h"
#include "mozilla/StaticPrefs_widget.h"
#include "mozilla/TimeStamp.h"
#include "GRefPtr.h"
#include "WidgetUtilsGtk.h"
#include "imgIContainer.h"
#include <gtk/gtk.h>
#include <gtk/gtkx.h>
#if defined(MOZ_X11)
# include <gtk/gtkx.h>
#endif
#include "mozilla/Encoding.h"