diff options
author | Martin Mares <mj@ucw.cz> | 2010-12-04 18:49:05 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2010-12-04 18:49:05 +0100 |
commit | a30f08396bd651989c0f3ca98805acc731e07213 (patch) | |
tree | c4130d367c6d6bf876bbb36b91bd1b61caae2ecd | |
parent | e2864327195d067728dd904f8ff72959c8097508 (diff) | |
download | pciutils-a30f08396bd651989c0f3ca98805acc731e07213.tar.gz |
Moved #include <unistd.h> to pciutils.h and avoid it on Windows
-rw-r--r-- | lspci.c | 1 | ||||
-rw-r--r-- | pciutils.h | 2 | ||||
-rw-r--r-- | setpci.c | 1 |
3 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,6 @@ #include <string.h> #include <stdlib.h> #include <stdarg.h> -#include <unistd.h> #include "lspci.h" @@ -11,6 +11,8 @@ #ifdef PCI_OS_WINDOWS #include "compat/getopt.h" +#else +#include <unistd.h> #endif #define PCIUTILS_VERSION PCILIB_VERSION @@ -10,7 +10,6 @@ #include <string.h> #include <stdlib.h> #include <stdarg.h> -#include <unistd.h> #include <errno.h> #define PCIUTILS_SETPCI |