summary refs log tree commit diff stats
path: root/plugins/sysinfo/unix/parse.c
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2017-11-18 21:06:21 -0500
committerPatrick Griffis <tingping@tingping.se>2017-11-18 21:06:21 -0500
commit38f8cc8e0ccb981a06074cf9bf2ff8facb896c5d (patch)
tree9fc37512610352a48940550770b2c3da4ae4d630 /plugins/sysinfo/unix/parse.c
parent3e53635dfbd30acb7b11f07a6f00071e7643867f (diff)
sysinfo: Fix libpci detection
For some reason on my system `libpci` is found even though its not
installed...? Plus I forgot a few headers being included.
Diffstat (limited to 'plugins/sysinfo/unix/parse.c')
-rw-r--r--plugins/sysinfo/unix/parse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/sysinfo/unix/parse.c b/plugins/sysinfo/unix/parse.c
index 30599068..784e2824 100644
--- a/plugins/sysinfo/unix/parse.c
+++ b/plugins/sysinfo/unix/parse.c
@@ -23,14 +23,16 @@
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
-#include <pci/header.h>
+#ifdef HAVE_LIBPCI
+	#include <pci/header.h>
+	#include "pci.h"
+#endif
 #include <glib.h>
 
 #ifdef __sparc__
 #include <dirent.h>
 #endif
 
-#include "pci.h"
 #include "match.h"
 #include "parse.h"
 #include "sysinfo.h"