Bug 1249275: Fix mac compilation when sandbox is disabled. r?gerald draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Fri, 19 Feb 2016 01:34:38 +1100
changeset 331867 1906b93171db7ef65821846b89fb08ce492654eb
parent 331857 fcd35e10fa17d9fd11d92be48ae9698c2a900f1c
child 514489 8611e85d79d962929cd91a9ee80610d0241201b8
push id11102
push userbmo:jyavenard@mozilla.com
push dateThu, 18 Feb 2016 14:35:11 +0000
reviewersgerald
bugs1249275
milestone47.0a1
Bug 1249275: Fix mac compilation when sandbox is disabled. r?gerald MozReview-Commit-ID: D1Xc0Ujnm74
dom/media/gmp/GMPChild.cpp
--- a/dom/media/gmp/GMPChild.cpp
+++ b/dom/media/gmp/GMPChild.cpp
@@ -122,17 +122,17 @@ GetPluginFile(const nsAString& aPluginPa
   nsAutoString binaryName =                            baseName + NS_LITERAL_STRING(".dll");
 #else
 #error not defined
 #endif
   aLibFile->AppendRelativePath(binaryName);
   return true;
 }
 
-#if !defined(XP_MACOSX)
+#if !defined(XP_MACOSX) || !defined(MOZ_GMP_SANDBOX)
 static bool
 GetPluginFile(const nsAString& aPluginPath,
               nsCOMPtr<nsIFile>& aLibFile)
 {
   nsCOMPtr<nsIFile> unusedlibDir;
   return GetPluginFile(aPluginPath, unusedlibDir, aLibFile);
 }
 #endif