librtmp: Fix build error with ENODATA on FreeBSD

When building on FreeBSD before this patch, it would produce the error
"error: use of undeclared identifier 'ENODATA'". This fixes that.
This commit is contained in:
Ryan Foster
2017-05-25 03:35:35 -04:00
parent 110a9bd471
commit 972c470319

View File

@@ -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
#ifdef _WIN32
*socket_error = WSANO_DATA;
#elif __FreeBSD__
*socket_error = ENOATTR;
#else
*socket_error = ENODATA;
#endif