summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-09-30 17:03:32 +0000
committerPatrick Georgi <pgeorgi@google.com>2010-09-30 17:03:32 +0000
commita9095a95450860e7ea96bb6c21ca4f34e406d3d6 (patch)
treef79ff036266bb09b180f27b3552dd30116a221e4 /flashrom.c
parent5cfc94a98be9fa2317220c76367fe1792c328461 (diff)
downloadast2050-flashrom-a9095a95450860e7ea96bb6c21ca4f34e406d3d6.zip
ast2050-flashrom-a9095a95450860e7ea96bb6c21ca4f34e406d3d6.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. Corresponding to flashrom svn r1184. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/flashrom.c b/flashrom.c
index f722029..0a3e4fe 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -22,9 +22,11 @@
*/
#include <stdio.h>
-#include <fcntl.h>
#include <sys/types.h>
+#ifndef __LIBPAYLOAD__
+#include <fcntl.h>
#include <sys/stat.h>
+#endif
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
OpenPOWER on IntegriCloud