浏览代码

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.
Ryan Foster 8 年之前
父节点
当前提交
972c470319
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      plugins/obs-outputs/librtmp/rtmp.c

+ 2 - 0
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
         // 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