]> mj.ucw.cz Git - pciutils.git/commitdiff
Moved #include <unistd.h> to pciutils.h and avoid it on Windows
authorMartin Mares <mj@ucw.cz>
Sat, 4 Dec 2010 17:49:05 +0000 (18:49 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 4 Dec 2010 17:49:05 +0000 (18:49 +0100)
lspci.c
pciutils.h
setpci.c

diff --git a/lspci.c b/lspci.c
index 54317cf5002f3395b8fad76ca0ce87bc88dfafa5..bca1ccbca3b3d3e9a3aaecbf1ca57987ef553065 100644 (file)
--- a/lspci.c
+++ b/lspci.c
@@ -10,7 +10,6 @@
 #include <string.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <unistd.h>
 
 #include "lspci.h"
 
index 1f347a588d4398be3b7e11b264d29d65e0027363..e433e6beea547b04e2a4ba2baf095a7e1235b9b7 100644 (file)
@@ -11,6 +11,8 @@
 
 #ifdef PCI_OS_WINDOWS
 #include "compat/getopt.h"
+#else
+#include <unistd.h>
 #endif
 
 #define PCIUTILS_VERSION PCILIB_VERSION
index 5711e5105a9d49ab107c1cff3d82140d0da8f054..731c612504e15e9404942407112581e1139606fe 100644 (file)
--- a/setpci.c
+++ b/setpci.c
@@ -10,7 +10,6 @@
 #include <string.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#include <unistd.h>
 #include <errno.h>
 
 #define PCIUTILS_SETPCI