summaryrefslogtreecommitdiff
path: root/util/ectool/ec.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/ectool/ec.c')
-rw-r--r--util/ectool/ec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/ectool/ec.c b/util/ectool/ec.c
index 098e8126d9..08b6b1b37d 100644
--- a/util/ectool/ec.c
+++ b/util/ectool/ec.c
@@ -17,12 +17,12 @@
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
-#ifndef __NetBSD__
+#if !(defined __NetBSD__ || defined __OpenBSD__)
#include <sys/io.h>
#endif
#include "ec.h"
-#ifdef __NetBSD__
+#if defined __NetBSD__ || defined __OpenBSD__
#include <machine/sysarch.h>
static uint8_t inb(unsigned port)
{