diff options
Diffstat (limited to 'util/nvramtool/accessors')
-rw-r--r-- | util/nvramtool/accessors/cmos-hw-unix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/util/nvramtool/accessors/cmos-hw-unix.c b/util/nvramtool/accessors/cmos-hw-unix.c index 33d699415f..c66fa3e365 100644 --- a/util/nvramtool/accessors/cmos-hw-unix.c +++ b/util/nvramtool/accessors/cmos-hw-unix.c @@ -17,7 +17,7 @@ #if (defined(__MACH__) && defined(__APPLE__)) #include <DirectHW/DirectHW.h> #endif -#if defined(__NetBSD__) +#if defined(__NetBSD__) || defined(__OpenBSD__) #if defined(__i386__) || defined(__x86_64__) #include <machine/sysarch.h> @@ -58,8 +58,12 @@ static inline uint32_t inl(uint16_t port) } #endif #ifdef __x86_64__ +#ifdef __OpenBSD__ +#define iopl amd64_iopl +#else #define iopl x86_64_iopl #endif +#endif #ifdef __i386__ #define iopl i386_iopl #endif |