1
0
mirror of https://github.com/luapower/mysql.git synced 2025-04-19 10:50:33 +02:00

bugfix: .so name on linux

This commit is contained in:
Cosmin Apreuetsei 2014-03-19 16:58:28 +02:00
parent d2600710fb
commit b8655147f4

View File

@ -2,7 +2,7 @@
local ffi = require'ffi'
local bit = require'bit'
require'mysql_h'
local myok, myC = pcall(ffi.load, ffi.abi'win' and 'libmysql' or 'mysql')
local myok, myC = pcall(ffi.load, ffi.abi'win' and 'libmysql' or 'mysqlclient')
local maok, maC = pcall(ffi.load, ffi.abi'win' and 'libmariadb' or 'mariadb')
local C = maok and myC or maC
local M = {C = C}