diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-01-06 14:37:17 -0800 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-01-08 21:49:03 +0100 |
commit | f73dddc767b38988f6905ef56e95acad9fa4e8ca (patch) | |
tree | 084a7751dd4abed88dfb404ed9ed16bebfe96097 | |
parent | 9ebb860e3981db78ee31859dc77f1fce3ccc3183 (diff) |
Solaris defines struct winsize in termios.h
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | tools/intel_gpu_top.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 00c05eed..197c6222 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 260a28b5..033ba53b 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" |