summaryrefslogtreecommitdiff
path: root/util/dell-flash-unlock/accessors.c
diff options
context:
space:
mode:
authorNicholas Chin <nic.c3.14@gmail.com>2024-04-28 15:16:19 -0600
committerNicholas Chin <nic.c3.14@gmail.com>2024-04-28 15:16:19 -0600
commit6fe2482fdf035abf4bfb076801aef314fe70776c (patch)
tree363cb658245ff26d06df4149893c1bdc2b7ed7d4 /util/dell-flash-unlock/accessors.c
parentb737a24c903ff75475fc7ac8a2f80901fb0acfcb (diff)
dell-flash-unlock: Remove unnecessary includes for NetBSD
The pio.h header, although present on NetBSD, is not necessary, as it only declares x86 port IO inx()/outx() functions which are not actually implemented. Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Diffstat (limited to 'util/dell-flash-unlock/accessors.c')
-rw-r--r--util/dell-flash-unlock/accessors.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/dell-flash-unlock/accessors.c b/util/dell-flash-unlock/accessors.c
index a5f936c8..a8541e28 100644
--- a/util/dell-flash-unlock/accessors.c
+++ b/util/dell-flash-unlock/accessors.c
@@ -8,12 +8,15 @@
#if defined(__OpenBSD__) || defined(__NetBSD__)
#include <sys/types.h>
#include <machine/sysarch.h>
+#endif /* __OpenBSD__ || __NetBSD__ */
+
+#if defined(__OpenBSD__)
#if defined(__amd64__)
#include <amd64/pio.h>
#elif defined(__i386__)
#include <i386/pio.h>
#endif /* __i386__ */
-#endif /* __OpenBSD__ || __NetBSD__ */
+#endif /* __OpenBSD__ */
#include <errno.h>