[Spice-commits] gtk/channel-display.c gtk/controller gtk/coroutine_ucontext.c

Marc-André Lureau elmarco at kemper.freedesktop.org
Mon Jan 21 10:49:28 PST 2013


 gtk/channel-display.c    |    4 ++++
 gtk/controller/dump.c    |    2 ++
 gtk/controller/test.c    |    2 ++
 gtk/coroutine_ucontext.c |    2 ++
 4 files changed, 10 insertions(+)

New commits:
commit b20aadc0ea7daeb0dee35db5de16f8e9fb988dcc
Author: Jasper Lievisse Adriaanse <jasper at humppa.nl>
Date:   Mon Jan 21 19:47:24 2013 +0100

    build-sys: missing sys/types.h in gtk/channel-display.c

diff --git a/gtk/channel-display.c b/gtk/channel-display.c
index d07b65c..c098ddb 100644
--- a/gtk/channel-display.c
+++ b/gtk/channel-display.c
@@ -19,6 +19,10 @@
 #include "config.h"
 #endif
 
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
 #ifdef HAVE_SYS_SHM_H
 #include <sys/shm.h>
 #endif
diff --git a/gtk/controller/dump.c b/gtk/controller/dump.c
index 6541dec..4fcfe58 100644
--- a/gtk/controller/dump.c
+++ b/gtk/controller/dump.c
@@ -24,7 +24,9 @@
 #include <windows.h>
 #else
 #include <sys/socket.h>
+#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
+#endif
 #include <sys/un.h>
 #include <stdlib.h>
 #include <unistd.h>
diff --git a/gtk/controller/test.c b/gtk/controller/test.c
index f6f3975..289ffb8 100644
--- a/gtk/controller/test.c
+++ b/gtk/controller/test.c
@@ -30,7 +30,9 @@ static HANDLE pipe = INVALID_HANDLE_VALUE;
 #else
 
 #include <sys/socket.h>
+#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
+#endif
 #include <sys/un.h>
 #include <stdlib.h>
 #include <unistd.h>
diff --git a/gtk/coroutine_ucontext.c b/gtk/coroutine_ucontext.c
index ec231af..af811a7 100644
--- a/gtk/coroutine_ucontext.c
+++ b/gtk/coroutine_ucontext.c
@@ -20,7 +20,9 @@
 
 #include <config.h>
 
+#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
+#endif
 #include <sys/mman.h>
 #include <stdio.h>
 #include <stdlib.h>


More information about the Spice-commits mailing list