summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/rocklibc.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklibc.h')
-rw-r--r--apps/plugins/lua/rocklibc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklibc.h b/apps/plugins/lua/rocklibc.h
index 44f916fded..430889bb70 100644
--- a/apps/plugins/lua/rocklibc.h
+++ b/apps/plugins/lua/rocklibc.h
@@ -30,6 +30,7 @@
#include <errno.h>
#define PREFIX(_x_) sim_ ## _x_
#else
+#undef errno
extern int errno;
#define EINVAL 22 /* Invalid argument */
#define ERANGE 34 /* Math result not representable */
@@ -43,7 +44,8 @@ extern int errno;
#define memcmp rb->memcmp
#define strlen rb->strlen
-extern int PREFIX(fscanf)(int fd, const char *fmt, ...);
+extern int PREFIX(fscanf)(void *fd, const char *fmt, ...);
+extern int PREFIX(getc)(int fd);
#endif /* _ROCKLIBC_H_ */