From: Jo-Philipp Wich Date: Sun, 17 May 2009 01:56:15 +0000 (+0000) Subject: libs/core: make sure that bitlib is loaded, fixes some sdk problems X-Git-Tag: 0.9.0~444 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=62fade570951964115136f2cd47487633cd529be libs/core: make sure that bitlib is loaded, fixes some sdk problems --- diff --git a/libs/core/luasrc/init.lua b/libs/core/luasrc/init.lua index 81a65b181..dc91a36a0 100644 --- a/libs/core/luasrc/init.lua +++ b/libs/core/luasrc/init.lua @@ -26,6 +26,11 @@ limitations under the License. local require = require +-- Make sure that bitlib is loaded +if not _G.bit then + _G.bit = require "bit" +end + module "luci" local v = require "luci.version"