[Spice-commits] server/red-stream.c

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 13 11:58:07 UTC 2019


 server/red-stream.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f90f75e41c0cdb33b6b55cd4089db022540937e3
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Wed Jun 12 10:35:25 2019 +0100

    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 <fziglio at redhat.com>
    Acked-by: Uri Lublin <uril at redhat.com>

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 <netdb.h>
 #include <sys/socket.h>
 #include <netinet/tcp.h>
+#else
+#include <ws2tcpip.h>
 #endif
 
 #include <glib.h>


More information about the Spice-commits mailing list