From 7ee278f17613d07ee18070f83aca9f050a526a72 Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Wed, 20 Feb 2013 14:40:07 +0000 Subject: build: Guard the inclusions of config.h with HAVE_CONFIG_H autoconf can be configured to not generate a config.h but to give the defines with command line arguments instead. In this case, there's no config.h to include. To work in both cases autoconf adds a HAVE_CONFIG_H define on the command line to signal there's a config.h to include. Signed-off-by: Damien Lespiau --- tools/intel_gpu_top.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/intel_gpu_top.c') diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c index 76a2b0bb..c8b506a8 100644 --- a/tools/intel_gpu_top.c +++ b/tools/intel_gpu_top.c @@ -27,7 +27,9 @@ * */ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include #include -- cgit v1.2.3