[Spice-devel] [PATCH] usbredirserver: Make compile under MacOS
Frediano Ziglio
fziglio at redhat.com
Wed Jan 23 10:09:25 UTC 2019
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
+
static int verbose = usbredirparser_info;
static int client_fd, running = 1;
static libusb_context *ctx;
--
2.20.1
More information about the Spice-devel
mailing list