Skip to content

Commit

Permalink
Merge pull request #486 from zhaozg/master
Browse files Browse the repository at this point in the history
update libuv to 1.37.0
  • Loading branch information
squeek502 authored Apr 22, 2020
2 parents fcdece2 + 7fa4a74 commit 9054ac8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deps/libuv
16 changes: 16 additions & 0 deletions src/constants.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,22 @@ static int luv_constants(lua_State* L) {
lua_pushinteger(L, SIGSYS);
lua_setfield(L, -2, "SIGSYS");
#endif
#if LUV_UV_VERSION_GEQ(1, 37, 0)
lua_pushinteger(L, UV_UDP_RECVMMSG);
lua_setfield(L, -2, "UDP_RECVMMSG");
#endif
#if LUV_UV_VERSION_GEQ(1, 35, 0)
lua_pushinteger(L, UV_UDP_MMSG_CHUNK);
lua_setfield(L, -2, "UDP_MMSG_CHUNK");
#endif
lua_pushinteger(L, UV_UDP_REUSEADDR);
lua_setfield(L, -2, "UDP_REUSEADDR");
lua_pushinteger(L, UV_UDP_PARTIAL);
lua_setfield(L, -2, "UDP_PARTIAL");
lua_pushinteger(L, UV_UDP_IPV6ONLY);
lua_setfield(L, -2, "UDP_IPV6ONLY");
lua_pushinteger(L, UV_TCP_IPV6ONLY);
lua_setfield(L, -2, "TCP_IPV6ONLY");
return 1;
}

Expand Down

0 comments on commit 9054ac8

Please sign in to comment.