summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2013-06-02 22:38:39 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-06-07 20:35:38 -0700
commit719888a9ec5ef5a45698dea8a9642091c433ff29 (patch)
treeeaf36a8140126747e5c884ae9d09279ddfc12728
parent434cd73d23cf5dc60d2047047378b59cadb0d5bb (diff)
downloadxorg-lib-libpciaccess-719888a9ec5ef5a45698dea8a9642091c433ff29.tar.gz
Protect config.h like usual.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/common_bridge.c3
-rw-r--r--src/common_device_name.c3
2 files changed, 6 insertions, 0 deletions
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@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>