2005-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mono / metadata / console-io.c
index 0c7aecbfd5eba2641abd81c2494843709de348e3..4d870613688bc5d55c0fb63030be0839a8d380ba 100644 (file)
@@ -13,6 +13,8 @@
 #include <string.h>
 #include <errno.h>
 #include <signal.h>
+#include <sys/time.h>
+#include <sys/types.h>
 #include <unistd.h>
 /* On solaris, curses.h must come before both termios.h and term.h */
 #ifdef HAVE_CURSES_H
 #ifdef HAVE_TERM_H
 #include <term.h>
 #endif
+/* Needed for FIONREAD under solaris */
+#ifdef HAVE_SYS_FILIO_H
+#include <sys/filio.h>
+#endif
 #ifndef PLATFORM_WIN32
 #ifndef TIOCGWINSZ
 #include <sys/ioctl.h>