[PATCH:intel-gpu-tools 2/6] Solaris defines struct winsize in termios.h

Alan Coopersmith alan.coopersmith at oracle.com
Fri Jan 6 14:37:17 PST 2012


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 configure.ac          |    1 +
 tools/intel_gpu_top.c |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 00c05ee..197c622 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,6 +35,7 @@ AM_INIT_AUTOMAKE([foreign dist-bzip2])
 AM_MAINTAINER_MODE
 
 # Checks for functions, headers, structures, etc.
+AC_CHECK_HEADERS([termios.h])
 AC_CHECK_MEMBERS([struct sysinfo.totalram],[],[],[AC_INCLUDES_DEFAULT
 #include <sys/sysinfo.h>
 ])
diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index 260a28b..033ba53 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -27,6 +27,8 @@
  *
  */
 
+#include "config.h"
+
 #include <unistd.h>
 #include <stdlib.h>
 #include <stdio.h>
@@ -35,6 +37,9 @@
 #include <sys/time.h>
 #include <sys/wait.h>
 #include <string.h>
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
+#endif
 #include "intel_gpu_tools.h"
 #include "instdone.h"
 
-- 
1.7.3.2



More information about the xorg-devel mailing list