[Spice-devel] [PATCH spice-server] Add possibly missing headers for pthread.h
Christophe Fergeau
cfergeau at redhat.com
Tue Jun 26 09:46:05 UTC 2018
Ok,
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
On Wed, Jun 20, 2018 at 02:31:40PM +0100, Frediano Ziglio wrote:
> 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
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180626/e6f352b8/attachment.sig>
More information about the Spice-devel
mailing list