Ver Fonte

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

librtmp: Fix build error with ENODATA on FreeBSD
Jim há 8 anos atrás
pai
commit
9e66bca020
1 ficheiros alterados com 2 adições e 0 exclusões
  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
 #ifdef _WIN32
         *socket_error = WSANO_DATA;
+#elif __FreeBSD__
+        *socket_error = ENOATTR;
 #else
         *socket_error = ENODATA;
 #endif