summaryrefslogtreecommitdiff
path: root/dom/media/gmp/GMPChild.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/gmp/GMPChild.cpp')
-rw-r--r--dom/media/gmp/GMPChild.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/dom/media/gmp/GMPChild.cpp b/dom/media/gmp/GMPChild.cpp
index eb18037364..fa6f2f4c83 100644
--- a/dom/media/gmp/GMPChild.cpp
+++ b/dom/media/gmp/GMPChild.cpp
@@ -112,12 +112,14 @@ GetPluginFile(const nsAString& aPluginPath,
nsAutoString baseName;
GetFileBase(aPluginPath, aLibDirectory, aLibFile, baseName);
-#if defined(OS_POSIX)
+#if defined(XP_MACOSX)
+ nsAutoString binaryName = NS_LITERAL_STRING("lib") + baseName + NS_LITERAL_STRING(".dylib");
+#elif defined(OS_POSIX)
nsAutoString binaryName = NS_LITERAL_STRING("lib") + baseName + NS_LITERAL_STRING(".so");
#elif defined(XP_WIN)
nsAutoString binaryName = baseName + NS_LITERAL_STRING(".dll");
#else
-#error Unsupported O.S.
+#error not defined
#endif
aLibFile->AppendRelativePath(binaryName);
return true;