summaryrefslogtreecommitdiff
path: root/tools/intel_gpu_top.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-01-06 14:37:17 -0800
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-01-08 21:49:03 +0100
commitf73dddc767b38988f6905ef56e95acad9fa4e8ca (patch)
tree084a7751dd4abed88dfb404ed9ed16bebfe96097 /tools/intel_gpu_top.c
parent9ebb860e3981db78ee31859dc77f1fce3ccc3183 (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>
Diffstat (limited to 'tools/intel_gpu_top.c')
-rw-r--r--tools/intel_gpu_top.c5
1 files changed, 5 insertions, 0 deletions
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"