summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/mknkboot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/mknkboot.c b/tools/mknkboot.c
index f17d1e9070..e63840427e 100644
--- a/tools/mknkboot.c
+++ b/tools/mknkboot.c
@@ -124,6 +124,7 @@ static void put_uint32le(uint32_t x, unsigned char* p)
p[3] = (x >> 24) & 0xff;
}
+#if !defined(BEASTPATCHER)
static off_t filesize(int fd) {
struct stat buf;
@@ -134,6 +135,7 @@ static off_t filesize(int fd) {
return(buf.st_size);
}
}
+#endif
int mknkboot(const struct filebuf *indata, const struct filebuf *bootdata,