Bug 1406233 - Include sys/sysmacros.h for major()/minor() macros in Linux sandbox broker. r?gcp draft
authorJed Davis <jld@mozilla.com>
Thu, 05 Oct 2017 18:10:49 -0600
changeset 675844 3577b2d2bb2cec02874e87ca01fb265a0afa6bdf
parent 675689 19b32a138d08f73961df878a29de6f0aad441683
child 734732 4c4cdda3ff2edb2cde4c26953d2f5373b898a5e6
push id83265
push userbmo:jld@mozilla.com
push dateFri, 06 Oct 2017 00:11:23 +0000
reviewersgcp
bugs1406233
milestone58.0a1
Bug 1406233 - Include sys/sysmacros.h for major()/minor() macros in Linux sandbox broker. r?gcp MozReview-Commit-ID: G1D4yxLAAqg
security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp
--- a/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp
+++ b/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp
@@ -27,18 +27,19 @@
 #include "cutils/properties.h"
 #endif
 
 #ifdef MOZ_WIDGET_GTK
 #include <glib.h>
 #endif
 
 #include <dirent.h>
+#include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <sys/types.h>
-#include <sys/stat.h>
 
 namespace mozilla {
 
 #if defined(MOZ_CONTENT_SANDBOX)
 namespace {
 static const int rdonly = SandboxBroker::MAY_READ;
 static const int wronly = SandboxBroker::MAY_WRITE;
 static const int rdwr = rdonly | wronly;