about summary refs log tree commit diff stats
path: root/src/luasocket
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-20 23:34:29 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-20 23:34:29 -0800
commit548d59f918eb9d370053596b5166f09b4e5e00c5 (patch)
treed0fc64dc432567aecee7f2552e81004309b83ed3 /src/luasocket
parent02acfa7c9c9347abf2c170b0405010bc6f219fc0 (diff)
downloadteliva-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.c1
-rw-r--r--src/luasocket/socket.lua1
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