From f90f75e41c0cdb33b6b55cd4089db022540937e3 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Wed, 12 Jun 2019 10:35:25 +0100 Subject: [PATCH] red-stream: Fix compilation on Fedora 30 for Windows using MingW On Windows Fedora 30 reports these errors: In file included from /usr/x86_64-w64-mingw32/sys-root/mingw/include/openssl/crypto.h:29, from /usr/x86_64-w64-mingw32/sys-root/mingw/include/openssl/bio.h:20, from /usr/x86_64-w64-mingw32/sys-root/mingw/include/openssl/err.h:21, from red-stream.c:31: /usr/x86_64-w64-mingw32/sys-root/mingw/include/openssl/x509.h:75:1: error: pasting "stack_st_" and "(" does not give a valid preprocessing token DEFINE_STACK_OF(X509_NAME) ^~~~~~~~~~~~~~~ /usr/x86_64-w64-mingw32/sys-root/mingw/include/openssl/x509.h:75:17: error: expected ')' before numeric constant DEFINE_STACK_OF(X509_NAME) ^~~~~~~~~ ... This is due to missing X509_NAME definition by Windows headers. Including the network header on Windows solves this problem. This is consistent with reds.c file. Signed-off-by: Frediano Ziglio Acked-by: Uri Lublin --- server/red-stream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/red-stream.c b/server/red-stream.c index 3057d8bb..77fed097 100644 --- a/server/red-stream.c +++ b/server/red-stream.c @@ -24,6 +24,8 @@ #include #include #include +#else +#include #endif #include