diff options
author | oxygene <oxygene@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2010-09-30 17:03:32 +0000 |
---|---|---|
committer | oxygene <oxygene@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2010-09-30 17:03:32 +0000 |
commit | d83d4070bfc116a32ca7b365cd7a614e1b6202ed (patch) | |
tree | f79ff036266bb09b180f27b3552dd30116a221e4 /hwaccess.c | |
parent | 198af25a1f5570d9d7351f1bbfdc3e38e975fc27 (diff) | |
download | flashrom-d83d4070bfc116a32ca7b365cd7a614e1b6202ed.tar.gz |
Add support for building flashrom against libpayload.
This doesn't include changes to the frontend which must be
done separately, so this won't work out of the box.
This code was tested on hardware.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1184 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'hwaccess.c')
-rw-r--r-- | hwaccess.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -22,9 +22,11 @@ #include <string.h> #include <stdlib.h> #include <sys/types.h> -#if !defined (__DJGPP__) +#if !defined (__DJGPP__) && !defined(__LIBPAYLOAD__) #include <unistd.h> #include <fcntl.h> +#endif +#if !defined (__DJGPP__) #include <errno.h> #endif #include "flash.h" @@ -44,7 +46,7 @@ int io_fd; void get_io_perms(void) { -#if defined(__DJGPP__) +#if defined(__DJGPP__) || defined(__LIBPAYLOAD__) /* We have full permissions by default. */ return; #else |