diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2015-05-23 23:59:23 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2015-05-23 23:59:23 +0000 |
commit | 6aff8d9aaf55d18e1962e40c8fa32bf9bc759664 (patch) | |
tree | 689dae40f6ef1f2460948a320307d581b22366e8 /hwaccess.h | |
parent | 0cef36f4f447abcd0d30e93925f95879a9dce35f (diff) | |
download | flashrom-6aff8d9aaf55d18e1962e40c8fa32bf9bc759664.tar.gz |
hwaccess.h: fix compilation on OSX.
DirectHW provides prototypes for out[bwl] and in[bwl], but we still
need to define the respective OUT[BWL] and IN[BWL] binding macros.
Apparently this has been broken since r1864 (or January 2015).
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1890 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'hwaccess.h')
-rw-r--r-- | hwaccess.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 <DirectHW/DirectHW.h> -#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 <DirectHW/DirectHW.h> +#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__) |