Signed-off-by: Alan Coopersmith <alan.coopersm...@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 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel