diff --git a/hwaccess.h b/hwaccess.h index 537836101..3e461920d 100644 --- a/hwaccess.h +++ b/hwaccess.h @@ -231,11 +231,6 @@ cpu_to_be(64) #define INL(x) __extension__ ({ u_int inl_tmp = (x); inl(inl_tmp); }) #else -#if defined(__MACH__) && defined(__APPLE__) - /* Header is part of the DirectHW library. */ - #include -#else - #if defined (__sun) /* Note different order for outb */ #define OUTB(x,y) outb(y, x) @@ -259,6 +254,12 @@ cpu_to_be(64) #define INL inportl #else + +#if defined(__MACH__) && defined(__APPLE__) + /* Header is part of the DirectHW library. */ + #include +#endif + /* This is the usual glibc interface. */ #define OUTB outb #define OUTW outw @@ -269,7 +270,6 @@ cpu_to_be(64) #endif #endif #endif -#endif #if defined(__NetBSD__) || defined (__OpenBSD__) #if defined(__i386__) || defined(__x86_64__)