[Spice-devel] [PATCH spice-server] Add possibly missing headers for pthread.h

Frediano Ziglio fziglio at redhat.com
Wed Jun 20 13:31:40 UTC 2018


In some environment pthread.h is not defined but its definitions
are used in some headers.
Actually happens using MingW.

Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/dispatcher.h     | 1 +
 server/image-encoders.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/server/dispatcher.h b/server/dispatcher.h
index 1aaba13b..bb968e56 100644
--- a/server/dispatcher.h
+++ b/server/dispatcher.h
@@ -19,6 +19,7 @@
 #ifndef DISPATCHER_H_
 #define DISPATCHER_H_
 
+#include <pthread.h>
 #include <glib-object.h>
 
 #include "red-common.h"
diff --git a/server/image-encoders.h b/server/image-encoders.h
index 2022d323..fc70377b 100644
--- a/server/image-encoders.h
+++ b/server/image-encoders.h
@@ -20,6 +20,7 @@
 #define IMAGE_ENCODERS_H_
 
 #include <setjmp.h>
+#include <pthread.h>
 #include <common/quic.h>
 #include <common/lz.h>
 
-- 
2.17.1



More information about the Spice-devel mailing list