diff options
Diffstat (limited to 'apps/plugins/lua/rocklibc.h')
-rw-r--r-- | apps/plugins/lua/rocklibc.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/plugins/lua/rocklibc.h b/apps/plugins/lua/rocklibc.h index 430889bb70..44f916fded 100644 --- a/apps/plugins/lua/rocklibc.h +++ b/apps/plugins/lua/rocklibc.h | |||
@@ -30,7 +30,6 @@ | |||
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 | ||
34 | extern int errno; | 33 | extern int errno; |
35 | #define EINVAL 22 /* Invalid argument */ | 34 | #define EINVAL 22 /* Invalid argument */ |
36 | #define ERANGE 34 /* Math result not representable */ | 35 | #define ERANGE 34 /* Math result not representable */ |
@@ -44,8 +43,7 @@ extern int errno; | |||
44 | #define memcmp rb->memcmp | 43 | #define memcmp rb->memcmp |
45 | #define strlen rb->strlen | 44 | #define strlen rb->strlen |
46 | 45 | ||
47 | extern int PREFIX(fscanf)(void *fd, const char *fmt, ...); | 46 | extern int PREFIX(fscanf)(int fd, const char *fmt, ...); |
48 | extern int PREFIX(getc)(int fd); | ||
49 | 47 | ||
50 | #endif /* _ROCKLIBC_H_ */ | 48 | #endif /* _ROCKLIBC_H_ */ |
51 | 49 | ||