From 920bc9762954454468d056a61391635cbd849406 Mon Sep 17 00:00:00 2001 From: moteus Date: Mon, 27 May 2013 12:45:09 +0400 Subject: Build with Lua 5.2 without LUA_COMPAT_MODULE flag. LUASOCKET_USE_GLOBAL flag enable create global variables when load socket/mime modules. --- test/hello.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/hello.lua b/test/hello.lua index cfa5c82..3f385dc 100644 --- a/test/hello.lua +++ b/test/hello.lua @@ -1,3 +1,3 @@ -require"socket" -require"mime" +local socket = require"socket" +local mime = require"mime" print("Hello from " .. socket._VERSION .. " and " .. mime._VERSION .. "!") -- cgit v1.2.3-55-g6feb