aboutsummaryrefslogtreecommitdiff
path: root/libflash/libffs.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-02-24 08:58:50 +0800
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-26 16:32:02 +1100
commit8d2eacb522bbd2cfbc982b68d349d3257ba1e2f2 (patch)
treec9b75a89efa6a5e73426279ef34f4f6e0d240e61 /libflash/libffs.c
parent7c4cea4a1690489233a14c2df01ddcc8f8e9ff8b (diff)
downloadskiboot-8d2eacb522bbd2cfbc982b68d349d3257ba1e2f2.zip
skiboot-8d2eacb522bbd2cfbc982b68d349d3257ba1e2f2.tar.gz
skiboot-8d2eacb522bbd2cfbc982b68d349d3257ba1e2f2.tar.bz2
libflash: Remove dependencies on skiboot.h header
libflash should be compilable without the skiboot definitions. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Reviewed-By: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash/libffs.c')
-rw-r--r--libflash/libffs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libflash/libffs.c b/libflash/libffs.c
index c6cf9dd..bce4ac4 100644
--- a/libflash/libffs.c
+++ b/libflash/libffs.c
@@ -24,6 +24,10 @@
#include "libffs.h"
#include "ecc.h"
+#ifndef MIN
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
+#endif
+
enum ffs_type {
ffs_type_flash,
ffs_type_image,