summaryrefslogtreecommitdiff
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 @@
30#include <errno.h> 30#include <errno.h>
31#define PREFIX(_x_) sim_ ## _x_ 31#define PREFIX(_x_) sim_ ## _x_
32#else 32#else
33#undef errno
33extern int errno; 34extern int errno;
34#define EINVAL 22 /* Invalid argument */ 35#define EINVAL 22 /* Invalid argument */
35#define ERANGE 34 /* Math result not representable */ 36#define ERANGE 34 /* Math result not representable */
@@ -43,7 +44,8 @@ extern int errno;
43#define memcmp rb->memcmp 44#define memcmp rb->memcmp
44#define strlen rb->strlen 45#define strlen rb->strlen
45 46
46extern int PREFIX(fscanf)(int fd, const char *fmt, ...); 47extern int PREFIX(fscanf)(void *fd, const char *fmt, ...);
48extern int PREFIX(getc)(int fd);
47 49
48#endif /* _ROCKLIBC_H_ */ 50#endif /* _ROCKLIBC_H_ */
49 51