[Spice-devel] [PATCH 6/6] LZ4: Include winsock.h when compiling for Windows

Christophe Fergeau cfergeau at redhat.com
Tue Feb 3 02:54:27 PST 2015


Hey,

Are you sure this one is required? I did not get warnings when using
ntohl without including winsock.h first.

Christophe

On Wed, Jan 28, 2015 at 11:49:49AM +0100, Javier Celaya wrote:
> ---
>  common/canvas_base.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/common/canvas_base.c b/common/canvas_base.c
> index fb35c4a..5867f3e 100644
> --- a/common/canvas_base.c
> +++ b/common/canvas_base.c
> @@ -27,7 +27,11 @@
>  #include <math.h>
>  
>  #ifdef USE_LZ4
> +#ifdef _WIN32
> +#include <winsock.h>
> +#else
>  #include <arpa/inet.h>
> +#endif
>  #include <lz4.h>
>  #endif
>  #include <spice/macros.h>
> -- 
> 1.9.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150203/6fbbd059/attachment.sig>


More information about the Spice-devel mailing list