diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-20 23:34:29 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-20 23:34:29 -0800 |
commit | 548d59f918eb9d370053596b5166f09b4e5e00c5 (patch) | |
tree | d0fc64dc432567aecee7f2552e81004309b83ed3 /src/luasocket | |
parent | 02acfa7c9c9347abf2c170b0405010bc6f219fc0 (diff) | |
download | teliva-548d59f918eb9d370053596b5166f09b4e5e00c5.tar.gz |
luasocket now loading properly
I still haven't tried actually running it.
Diffstat (limited to 'src/luasocket')
-rw-r--r-- | src/luasocket/luasocket.c | 1 | ||||
-rw-r--r-- | src/luasocket/socket.lua | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/luasocket/luasocket.c b/src/luasocket/luasocket.c index 0fd99f7..77730ce 100644 --- a/src/luasocket/luasocket.c +++ b/src/luasocket/luasocket.c @@ -100,5 +100,6 @@ LUASOCKET_API int luaopen_socket_core(lua_State *L) { int i; base_open(L); for (i = 0; mod[i].name; i++) mod[i].func(L); + lua_setglobal(L, "socket"); return 1; } diff --git a/src/luasocket/socket.lua b/src/luasocket/socket.lua index d1c0b16..303f04d 100644 --- a/src/luasocket/socket.lua +++ b/src/luasocket/socket.lua @@ -9,7 +9,6 @@ local base = _G local string = require("string") local math = require("math") -local socket = require("socket.core") local _M = socket |