Skip to content

Commit 7e18a3a

Browse files
committed
Fixed inability to load core socket library on macOS.
1 parent f0e938a commit 7e18a3a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

luasocket.patch

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,20 @@
2626
int ret = lua_gettop(L) - amount - 1;
2727
return ret >= 0 ? ret : 0;
2828
}
29+
@@ -124,3 +124,7 @@
30+
for (i = 0; mod[i].name; i++) mod[i].func(L);
31+
return 1;
32+
}
33+
+
34+
+LUASOCKET_API int luaopen_socket_coreosx(lua_State *L) {
35+
+ return luaopen_socket_core(L);
36+
+}
37+
--- a/luasocket/luasocket.h 2022-01-06 14:56:30.000000000 -0500
38+
+++ b/luasocket/luasocket.h 2022-01-06 14:57:15.000000000 -0500
39+
@@ -25,5 +25,6 @@
40+
* Initializes the library.
41+
\*-------------------------------------------------------------------------*/
42+
LUASOCKET_API int luaopen_socket_core(lua_State *L);
43+
+LUASOCKET_API int luaopen_socket_coreosx(lua_State *L);
44+
45+
#endif /* LUASOCKET_H */

0 commit comments

Comments
 (0)