Commit 6329ef9e authored by Chih-Wei Huang's avatar Chih-Wei Huang Committed by Alan Coopersmith
Browse files

Add missing guards around config.h inclusion



In some cases the header may not exist, leading to compilation issues.
Add the ifdef HAVE_CONFIG_H, as it is those in other parts of the
project.

[Emil Velikov: Split out from a larger commit, rework commit message]
Signed-off-by: Emil Velikov's avatarEmil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent e42ee2a0
......@@ -33,7 +33,10 @@
#include <stdlib.h>
#include <limits.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "pciaccess.h"
#include "pciaccess_private.h"
......
......@@ -45,7 +45,10 @@
#include <sys/mman.h>
#include <sys/memrange.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "pciaccess.h"
#include "pciaccess_private.h"
......
......@@ -57,7 +57,9 @@
#define iopl(x) -1
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_MTRR
#include <asm/mtrr.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment