[Spice-devel] [PATCH spice-gtk 4/4] Fix compilation on mingw/windows

Marc-André Lureau marcandre.lureau at gmail.com
Sun Jan 15 08:23:03 PST 2012


---
 gtk/channel-base.c  |    6 +++---
 gtk/spice-channel.c |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gtk/channel-base.c b/gtk/channel-base.c
index b01be23..cc4d242 100644
--- a/gtk/channel-base.c
+++ b/gtk/channel-base.c
@@ -129,11 +129,11 @@ void spice_channel_handle_wait_for_channels(SpiceChannel *channel, SpiceMsgIn *i
             .channel = channel
         };
 
-        SPICE_DEBUG("waiting for serial %lu (%d/%d)", data.wait->message_serial, i + 1, wfc->wait_count);
+        SPICE_DEBUG("waiting for serial %" PRIu64 " (%d/%d)", data.wait->message_serial, i + 1, wfc->wait_count);
         if (g_coroutine_condition_wait(&c->coroutine, wait_for_channel, &data))
-            SPICE_DEBUG("waiting for serial %lu, done", data.wait->message_serial);
+            SPICE_DEBUG("waiting for serial %"  PRIu64 ", done", data.wait->message_serial);
         else
-            SPICE_DEBUG("waiting for serial %lu, cancelled", data.wait->message_serial);
+            SPICE_DEBUG("waiting for serial %" PRIu64 ", cancelled", data.wait->message_serial);
     }
 }
 
diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index ed0ca8b..83cd344 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -2170,7 +2170,7 @@ ssl_reconnect:
 
 connected:
     rc = setsockopt(g_socket_get_fd(c->sock), IPPROTO_TCP, TCP_NODELAY,
-                    &delay_val, sizeof(delay_val));
+                    (const char*)&delay_val, sizeof(delay_val));
     if (rc != 0) {
         g_warning("%s: could not set sockopt TCP_NODELAY: %s", c->name,
                   strerror(errno));
-- 
1.7.7.5



More information about the Spice-devel mailing list