From 972c4703192f8aa354952fc9639e1230ce691700 Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Thu, 25 May 2017 03:35:35 -0400 Subject: [PATCH] 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. --- plugins/obs-outputs/librtmp/rtmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/obs-outputs/librtmp/rtmp.c b/plugins/obs-outputs/librtmp/rtmp.c index e9d9c80bc..dccad0e74 100644 --- a/plugins/obs-outputs/librtmp/rtmp.c +++ b/plugins/obs-outputs/librtmp/rtmp.c @@ -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