aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-12-26 22:11:36 +0100
committerMartin Mares <mj@ucw.cz>2022-02-10 12:58:17 +0100
commitb5bbc1adb18bffb03f76d933ac4ab971e04e385b (patch)
treee39e655e993bdbd67e522a6cab879e06a41ff2df
parente4ec9322dc6b05bab1138cbb5ce621fd763f89a0 (diff)
downloadpciutils-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.c1
-rw-r--r--lib/i386-ports.c1
-rw-r--r--ls-kernel.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/common.c b/common.c
index c5a3c8f..3d69dd0 100644
--- a/common.c
+++ b/common.c
@@ -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"