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.
This commit is contained in:
Patrick Griffis
2017-11-18 21:06:21 -05:00
parent 3e53635dfb
commit 38f8cc8e0c
2 changed files with 9 additions and 7 deletions

View File

@@ -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"