diff options
author | Pali Rohár <pali@kernel.org> | 2021-12-26 22:11:36 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2022-02-10 12:58:17 +0100 |
commit | b5bbc1adb18bffb03f76d933ac4ab971e04e385b (patch) | |
tree | e39e655e993bdbd67e522a6cab879e06a41ff2df | |
parent | e4ec9322dc6b05bab1138cbb5ce621fd763f89a0 (diff) | |
download | pciutils-b5bbc1adb18bffb03f76d933ac4ab971e04e385b.tar.gz |
pciutils: Remove #include <unistd.h> from files which do not need it
In more files is <unistd.h> header file included without any usage.
MSVC does not provide this header file so remove this useless usage of
<unistd.h> to allow compilation under MSVC.
-rw-r--r-- | common.c | 1 | ||||
-rw-r--r-- | lib/i386-ports.c | 1 | ||||
-rw-r--r-- | ls-kernel.c | 1 |
3 files changed, 0 insertions, 3 deletions
@@ -10,7 +10,6 @@ #include <string.h> #include <stdlib.h> #include <stdarg.h> -#include <unistd.h> #include "pciutils.h" diff --git a/lib/i386-ports.c b/lib/i386-ports.c index 768e545..2e64fe4 100644 --- a/lib/i386-ports.c +++ b/lib/i386-ports.c @@ -10,7 +10,6 @@ #include "internal.h" -#include <unistd.h> #include <string.h> #if defined(PCI_OS_LINUX) diff --git a/ls-kernel.c b/ls-kernel.c index ecacd0e..c47dc83 100644 --- a/ls-kernel.c +++ b/ls-kernel.c @@ -8,7 +8,6 @@ #include <stdio.h> #include <string.h> -#include <unistd.h> #include "lspci.h" |