libs/core: make sure that bitlib is loaded, fixes some sdk problems
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 17 May 2009 01:56:15 +0000 (01:56 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 17 May 2009 01:56:15 +0000 (01:56 +0000)
libs/core/luasrc/init.lua

index 81a65b1..dc91a36 100644 (file)
@@ -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"