On 6/12/19 1:53 PM, Frediano Ziglio wrote:
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.
Incude missing header in order to make code compile again.
Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
server/red-stream.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server/red-stream.c b/server/red-stream.c
index 3057d8bbb..77fed097e 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>
I see X509_NAME is defined in wincrypt.h
I did not follow the include-path but since
the Linux side includes network h-files it
makes sense the windows side will do the same.
Uri.
#endif
#include <glib.h>
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel