[Spice-devel] [PATCH] usbredirserver: Make compile under MacOS

Christophe Fergeau cfergeau at redhat.com
Mon Jan 28 12:50:23 UTC 2019


On Wed, Jan 23, 2019 at 10:09:25AM +0000, Frediano Ziglio wrote:
> This fixes Gitlab issue #9
> (cfr https://gitlab.freedesktop.org/spice/usbredir/issues/9).
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  usbredirserver/usbredirserver.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/usbredirserver/usbredirserver.c b/usbredirserver/usbredirserver.c
> index 6aa2740..429985a 100644
> --- a/usbredirserver/usbredirserver.c
> +++ b/usbredirserver/usbredirserver.c
> @@ -43,6 +43,13 @@
>  
>  #define SERVER_VERSION "usbredirserver " PACKAGE_VERSION
>  
> +#if !defined(SOL_TCP) && defined(IPPROTO_TCP)
> +#define SOL_TCP IPPROTO_TCP
> +#endif
> +#if !defined(TCP_KEEPIDLE) && defined(TCP_KEEPALIVE)
> +#define TCP_KEEPIDLE TCP_KEEPALIVE
> +#endif

Might be better to restrict this to OSX in case a system decides to
use TCP_KEEPALIVE, but with a different meaning?

Looks good otherwise,
Acked-by: Christophe Fergeau <cfergeau at redhat.com>

Christophe

> +
>  static int verbose = usbredirparser_info;
>  static int client_fd, running = 1;
>  static libusb_context *ctx;
> -- 
> 2.20.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/20190128/5e472da1/attachment.sig>


More information about the Spice-devel mailing list