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:
parent
d2600710fb
commit
b8655147f4
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user