diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2009-09-01 09:54:21 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2009-09-01 09:54:21 +0000 |
commit | 4db6cbd26c2913549cd3d58c6943e766ccdc6c5e (patch) | |
tree | 5b81d8deaf1ac0b5ab4cefef53e404a76c32ef1e /util/nvramtool/common.h | |
parent | f7f2f258d8b44218c2efb83cfb276890fd4fb95c (diff) | |
download | coreboot-4db6cbd26c2913549cd3d58c6943e766ccdc6c5e.tar.xz |
nvramtool:
* Add OSX/Darwin support
* Add $DESTDIR support
* Clean up make install/spec
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4622 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
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 |