aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pcilmr.c1
-rw-r--r--pciutils.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/pcilmr.c b/pcilmr.c
index 8cb5eee..cb8bd77 100644
--- a/pcilmr.c
+++ b/pcilmr.c
@@ -8,7 +8,6 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
-#include <getopt.h>
#include <memory.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/pciutils.h b/pciutils.h
index 036f0dc..53e0ee1 100644
--- a/pciutils.h
+++ b/pciutils.h
@@ -28,7 +28,7 @@
#if defined(PCI_OS_WINDOWS) && !(defined(__MINGW32_MAJOR_VERSION) && __MINGW32_MAJOR_VERSION >= 3)
#include "compat/getopt.h"
#else
-#include <unistd.h>
+#include <getopt.h>
#endif
#define PCIUTILS_VERSION PCILIB_VERSION