From 990ede9e65438c8e462a15fbd788fe5696e00123 Mon Sep 17 00:00:00 2001 From: "cosmin.apreutesei" Date: Fri, 20 Dec 2013 17:47:22 +0200 Subject: [PATCH] fixed lib name to load --- mysql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql.lua b/mysql.lua index 17bde62..b7f01ff 100644 --- a/mysql.lua +++ b/mysql.lua @@ -2,7 +2,7 @@ local ffi = require'ffi' local bit = require'bit' require'mysql_h' -local C = ffi.load'libmysql' +local C = ffi.load(ffi.abi'win' and 'libmysql' or 'mysql') local M = {C = C} --we compare NULL pointers against NULL instead of nil for compatibility with luaffi.