From a30f08396bd651989c0f3ca98805acc731e07213 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 4 Dec 2010 18:49:05 +0100 Subject: [PATCH] Moved #include to pciutils.h and avoid it on Windows --- lspci.c | 1 - pciutils.h | 2 ++ setpci.c | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lspci.c b/lspci.c index 54317cf..bca1ccb 100644 --- a/lspci.c +++ b/lspci.c @@ -10,7 +10,6 @@ #include #include #include -#include #include "lspci.h" diff --git a/pciutils.h b/pciutils.h index 1f347a5..e433e6b 100644 --- a/pciutils.h +++ b/pciutils.h @@ -11,6 +11,8 @@ #ifdef PCI_OS_WINDOWS #include "compat/getopt.h" +#else +#include #endif #define PCIUTILS_VERSION PCILIB_VERSION diff --git a/setpci.c b/setpci.c index 5711e51..731c612 100644 --- a/setpci.c +++ b/setpci.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #define PCIUTILS_SETPCI -- 2.39.5