[PATCH libpciaccess] Add missing HAVE_CONFIG_H include guards
Aaron Plattner
aplattner at nvidia.com
Mon Sep 22 12:24:53 PDT 2014
Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
---
src/common_vgaarb.c | 2 ++
src/freebsd_pci.c | 2 ++
src/linux_sysfs.c | 2 ++
3 files changed, 6 insertions(+)
diff --git a/src/common_vgaarb.c b/src/common_vgaarb.c
index ab3c5e806ffe..c59bd788dc5e 100644
--- a/src/common_vgaarb.c
+++ b/src/common_vgaarb.c
@@ -33,7 +33,9 @@
#include <stdlib.h>
#include <limits.h>
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include "pciaccess.h"
#include "pciaccess_private.h"
diff --git a/src/freebsd_pci.c b/src/freebsd_pci.c
index 7f5f56b7d408..9505a1c17d21 100644
--- a/src/freebsd_pci.c
+++ b/src/freebsd_pci.c
@@ -45,7 +45,9 @@
#include <sys/mman.h>
#include <sys/memrange.h>
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#include "pciaccess.h"
#include "pciaccess_private.h"
diff --git a/src/linux_sysfs.c b/src/linux_sysfs.c
index 8fca65e1cc37..08c99719bcba 100644
--- a/src/linux_sysfs.c
+++ b/src/linux_sysfs.c
@@ -57,7 +57,9 @@
#define iopl(x) -1
#endif
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
#ifdef HAVE_MTRR
#include <asm/mtrr.h>
--
2.1.0
More information about the xorg-devel
mailing list