summaryrefslogtreecommitdiff
path: root/lib/rbcodec/test/warble.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2014-08-30 01:08:34 -0400
committerMichael Sevakis <jethead71@rockbox.org>2014-08-30 01:29:18 -0400
commitda4938d6eed9c1c29e389e9a1de6a599d365fe09 (patch)
tree31d34d70b83583f91626e23fb83dbba4eb094284 /lib/rbcodec/test/warble.c
parentf3d60aea34de60c4371c04fa1b8482ca71a64b53 (diff)
Get the last errors I hope!
Change-Id: Ia285b95480cc9ac6494b745d80892c4b1b912341
Diffstat (limited to 'lib/rbcodec/test/warble.c')
-rw-r--r--lib/rbcodec/test/warble.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rbcodec/test/warble.c b/lib/rbcodec/test/warble.c
index 6c8442ae26..8f11b9b56e 100644
--- a/lib/rbcodec/test/warble.c
+++ b/lib/rbcodec/test/warble.c
@@ -77,6 +77,13 @@ int find_first_set_bit(uint32_t value)
return __builtin_ctz(value);
}
+off_t filesize(int fd)
+{
+ struct stat st;
+ fstat(fd, &st);
+ return st.st_size;
+}
+
/***************** INTERNAL *****************/
static enum { MODE_PLAY, MODE_WRITE } mode;