From dae2b97240892f213851735ced8add760d640a4d Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Tue, 20 Oct 2009 17:07:06 +0000 Subject: compile checkwps with -Wall, to avoid accidentally breaking it again when a function prototype changes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23291 a1c6a512-1295-4272-9138-f99709370657 --- tools/checkwps/file.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tools/checkwps/file.h') diff --git a/tools/checkwps/file.h b/tools/checkwps/file.h index 4256c1ee37..a14d7f5b91 100644 --- a/tools/checkwps/file.h +++ b/tools/checkwps/file.h @@ -5,3 +5,12 @@ /* Wrapper - required for O_RDONLY */ #include + +extern ssize_t read(int fd, void *buf, size_t count); +extern ssize_t write(int fd, const void *buf, size_t count); +extern off_t lseek(int fildes, off_t offset, int whence); +extern int close(int fd); + +/* strlcpy doesn't belong here (it's in string.h in the rockbox sources), + * but this avoids complicated magic to override the system string.h */ +size_t strlcpy(char *dst, const char *src, size_t siz); -- cgit