diff options
Diffstat (limited to 'tools/mknkboot.c')
-rw-r--r-- | tools/mknkboot.c | 2 |
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) | |||
124 | p[3] = (x >> 24) & 0xff; | 124 | p[3] = (x >> 24) & 0xff; |
125 | } | 125 | } |
126 | 126 | ||
127 | #if !defined(BEASTPATCHER) | ||
127 | static off_t filesize(int fd) { | 128 | static off_t filesize(int fd) { |
128 | struct stat buf; | 129 | struct stat buf; |
129 | 130 | ||
@@ -134,6 +135,7 @@ static off_t filesize(int fd) { | |||
134 | return(buf.st_size); | 135 | return(buf.st_size); |
135 | } | 136 | } |
136 | } | 137 | } |
138 | #endif | ||
137 | 139 | ||
138 | 140 | ||
139 | int mknkboot(const struct filebuf *indata, const struct filebuf *bootdata, | 141 | int mknkboot(const struct filebuf *indata, const struct filebuf *bootdata, |