Bug 1600454 - Add some missing includes in nsWaylandDisplay.cpp r=stransky
authorEmilio Cobos Álvarez <emilio@crisal.io>
Mon, 02 Dec 2019 06:54:08 +0000
changeset 504800 5cf05cf2657a05cffd0b1ba072b0f2443d557b81
parent 504796 b8f3a97900e5148daed8c0aae87243b8ef4a2c31
child 504801 f8cf90698071b93818a2fe9df8a0d13d256aafb8
push id36870
push usernerli@mozilla.com
push dateMon, 02 Dec 2019 18:41:58 +0000
treeherdermozilla-central@bc2e8add2746 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstransky
bugs1600454
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1600454 - Add some missing includes in nsWaylandDisplay.cpp r=stransky Otherwise open flags are not defined in some build configurations (or in non-unified builds, for that matter). Differential Revision: https://phabricator.services.mozilla.com/D55363
widget/gtk/nsWaylandDisplay.cpp
--- a/widget/gtk/nsWaylandDisplay.cpp
+++ b/widget/gtk/nsWaylandDisplay.cpp
@@ -2,16 +2,20 @@
 /* vim:expandtab:shiftwidth=4:tabstop=4:
  */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsWaylandDisplay.h"
 
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+
 namespace mozilla {
 namespace widget {
 
 #define GBMLIB_NAME "libgbm.so.1"
 #define DRMLIB_NAME "libdrm.so.2"
 
 #define DMABUF_PREF "widget.wayland_dmabuf_backend.enabled"
 // See WindowSurfaceWayland::RenderingCacheMode for details.