提交 9e66bca0 编写于 作者: J Jim 提交者: GitHub

Merge pull request #926 from RytoEX/fix-librtmp-freebsd

librtmp: Fix build error with ENODATA on FreeBSD
...@@ -729,6 +729,8 @@ add_addr_info(struct sockaddr_storage *service, socklen_t *addrlen, AVal *host, ...@@ -729,6 +729,8 @@ add_addr_info(struct sockaddr_storage *service, socklen_t *addrlen, AVal *host,
// since we're handling multiple addresses internally, fake the correct error response // since we're handling multiple addresses internally, fake the correct error response
#ifdef _WIN32 #ifdef _WIN32
*socket_error = WSANO_DATA; *socket_error = WSANO_DATA;
#elif __FreeBSD__
*socket_error = ENOATTR;
#else #else
*socket_error = ENODATA; *socket_error = ENODATA;
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册