From 8d2eacb522bbd2cfbc982b68d349d3257ba1e2f2 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 24 Feb 2015 08:58:50 +0800 Subject: libflash: Remove dependencies on skiboot.h header libflash should be compilable without the skiboot definitions. Signed-off-by: Jeremy Kerr Reviewed-By: Joel Stanley Signed-off-by: Stewart Smith --- libflash/libffs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libflash/libffs.c') 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, -- cgit v1.1