Browse Source

obs-outputs: Fix undefined MSG_NOSIGNAL

Define MSG_NOSIGNAL even if CRYPTO is not defined.
James Park 6 years ago
parent
commit
2ff9cf17c0
1 changed files with 4 additions and 4 deletions
  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>
 #include <util/platform.h>
 
 
+#if !defined(MSG_NOSIGNAL)
+#define MSG_NOSIGNAL 0
+#endif
+
 #ifdef CRYPTO
 #ifdef CRYPTO
 
 
 #ifdef __APPLE__
 #ifdef __APPLE__
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 #endif
 #endif
 
 
-#if !defined(MSG_NOSIGNAL)
-#define MSG_NOSIGNAL 0
-#endif
-
 #if defined(USE_MBEDTLS)
 #if defined(USE_MBEDTLS)
 #if defined(_WIN32)
 #if defined(_WIN32)
 #include <windows.h>
 #include <windows.h>