summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2015-04-29 14:07:50 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2015-04-29 14:08:53 +0100
commit6514bdfe4be4cccaaac92c6aa1133dc36236457f (patch)
tree42cfe2c53286a81b8fe7fcc1f23539e7ae24a7c4
parent196734d400bc480c5098835b83218bd47c8edc84 (diff)
Include sys/select.h where needed to fix compilation
As of Cygwin 2.0.0, sys/time.h no longer includes sys/select.h
-rw-r--r--hw/xfree86/os-support/shared/posix_tty.c1
-rw-r--r--hw/xfree86/os-support/shared/sigio.c1
-rw-r--r--hw/xwin/winclipboard/thread.c1
-rw-r--r--hw/xwin/winclipboard/wndproc.c1
-rw-r--r--hw/xwin/winprefs.c1
5 files changed, 5 insertions, 0 deletions
diff --git a/hw/xfree86/os-support/shared/posix_tty.c b/hw/xfree86/os-support/shared/posix_tty.c
index 6e2af001a..8e561430b 100644
--- a/hw/xfree86/os-support/shared/posix_tty.c
+++ b/hw/xfree86/os-support/shared/posix_tty.c
@@ -56,6 +56,7 @@
#include <xorg-config.h>
#endif
+#include <sys/select.h>
#include <X11/X.h>
#include "xf86.h"
#include "xf86Priv.h"
diff --git a/hw/xfree86/os-support/shared/sigio.c b/hw/xfree86/os-support/shared/sigio.c
index 45949f7a3..de4244bdf 100644
--- a/hw/xfree86/os-support/shared/sigio.c
+++ b/hw/xfree86/os-support/shared/sigio.c
@@ -56,6 +56,7 @@
#include <xorg-config.h>
#endif
+#include <sys/select.h>
#include <X11/X.h>
#include "xf86.h"
#include "xf86Priv.h"
diff --git a/hw/xwin/winclipboard/thread.c b/hw/xwin/winclipboard/thread.c
index 58b3bf74d..e3c8175ae 100644
--- a/hw/xwin/winclipboard/thread.c
+++ b/hw/xwin/winclipboard/thread.c
@@ -55,6 +55,7 @@
#ifdef HAS_WINSOCK
#include <X11/Xwinsock.h>
#else
+#include <sys/select.h>
#include <errno.h>
#endif
diff --git a/hw/xwin/winclipboard/wndproc.c b/hw/xwin/winclipboard/wndproc.c
index 35377e818..b7e534a99 100644
--- a/hw/xwin/winclipboard/wndproc.c
+++ b/hw/xwin/winclipboard/wndproc.c
@@ -45,6 +45,7 @@
#include <sys/types.h>
#include <sys/time.h>
+#include <sys/select.h>
#include <limits.h>
#include <X11/Xatom.h>
diff --git a/hw/xwin/winprefs.c b/hw/xwin/winprefs.c
index 4d53f8a79..9f1e9b1b7 100644
--- a/hw/xwin/winprefs.c
+++ b/hw/xwin/winprefs.c
@@ -37,6 +37,7 @@
#include <stdlib.h>
#ifdef __CYGWIN__
#include <sys/resource.h>
+#include <sys/select.h>
#include <sys/wait.h>
#include <pthread.h>
#endif