[PATCH:libpciaccess 1/3] Protect config.h like usual.

Thomas Klausner wiz at NetBSD.org
Sun Jun 2 13:38:39 PDT 2013


---
 src/common_bridge.c      | 3 +++
 src/common_device_name.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/src/common_bridge.c b/src/common_bridge.c
index 82a13fd..b4b5d7e 100644
--- a/src/common_bridge.c
+++ b/src/common_bridge.c
@@ -29,7 +29,10 @@
  * \author Ian Romanick <idr at us.ibm.com>
  */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
diff --git a/src/common_device_name.c b/src/common_device_name.c
index ad9ed9d..8c73dbd 100644
--- a/src/common_device_name.c
+++ b/src/common_device_name.c
@@ -28,7 +28,10 @@
  * with a particular device or vendor.
  */
 
+#ifdef HAVE_CONFIG_H
 #include "config.h"
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
-- 
1.8.2.3



More information about the xorg-devel mailing list