summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/elua/core/util.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/elua/core/util.lua b/src/bin/elua/core/util.lua
index 78db3abaf1..44a5042bea 100644
--- a/src/bin/elua/core/util.lua
+++ b/src/bin/elua/core/util.lua
@@ -77,6 +77,8 @@ M.lib_load = function(libname)
77 else 77 else
78 if ffi.os == "Windows" then 78 if ffi.os == "Windows" then
79 lib = ffi.load(ev .. "\\" .. libname .. ".dll") 79 lib = ffi.load(ev .. "\\" .. libname .. ".dll")
80 elseif ffi.os == "OSX" then
81 lib = ffi.load(ev .. "/lib" .. libname .. ".dylib")
80 else 82 else
81 lib = ffi.load(ev .. "/lib" .. libname .. ".so") 83 lib = ffi.load(ev .. "/lib" .. libname .. ".so")
82 end 84 end