瀏覽代碼

obs-outputs: Fix undefined MSG_NOSIGNAL

Define MSG_NOSIGNAL even if CRYPTO is not defined.
James Park 6 年之前
父節點
當前提交
2ff9cf17c0
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      plugins/obs-outputs/librtmp/rtmp.c

+ 4 - 4
plugins/obs-outputs/librtmp/rtmp.c

@@ -34,16 +34,16 @@
 
 #include <util/platform.h>
 
+#if !defined(MSG_NOSIGNAL)
+#define MSG_NOSIGNAL 0
+#endif
+
 #ifdef CRYPTO
 
 #ifdef __APPLE__
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #endif
 
-#if !defined(MSG_NOSIGNAL)
-#define MSG_NOSIGNAL 0
-#endif
-
 #if defined(USE_MBEDTLS)
 #if defined(_WIN32)
 #include <windows.h>