projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
112d053
)
libs/core: make sure that bitlib is loaded, fixes some sdk problems
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 17 May 2009 01:56:15 +0000
(
01:56
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 17 May 2009 01:56:15 +0000
(
01:56
+0000)
libs/core/luasrc/init.lua
patch
|
blob
|
history
diff --git
a/libs/core/luasrc/init.lua
b/libs/core/luasrc/init.lua
index 81a65b181f868d228b5beceed0dbec262bc28d1e..dc91a36a0f03d2600d987e2deb6bd259d270342d 100644
(file)
--- 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"