diff options
Diffstat (limited to 'util/nvramtool/common.h')
-rw-r--r-- | util/nvramtool/common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/nvramtool/common.h b/util/nvramtool/common.h index a247380bce..c8ea92a588 100644 --- a/util/nvramtool/common.h +++ b/util/nvramtool/common.h @@ -53,7 +53,12 @@ #define INW(x) __extension__ ({ u_int tmp = (x); inw(tmp); }) #define INL(x) __extension__ ({ u_int tmp = (x); inl(tmp); }) #else +#if defined(__GLIBC__) #include <sys/io.h> +#endif +#if (defined(__MACH__) && defined(__APPLE__)) +#include <DirectIO/darwinio.h> +#endif #define OUTB outb #define OUTW outw #define OUTL outl |