fix struct stat issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1026 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
24be5a1bbb
commit
af2019888f
|
@ -985,7 +985,6 @@ size_t strlen(const char *s) __attribute__((weak, alias("rt_strlen")));
|
||||||
char *strstr(const char *s1,const char *s2) __attribute__((weak, alias("rt_strstr")));
|
char *strstr(const char *s1,const char *s2) __attribute__((weak, alias("rt_strstr")));
|
||||||
int strcasecmp(const char *a, const char *b) __attribute__((weak, alias("rt_strcasecmp")));
|
int strcasecmp(const char *a, const char *b) __attribute__((weak, alias("rt_strcasecmp")));
|
||||||
char *strncpy(char *dest, const char *src, size_t n) __attribute__((weak, alias("rt_strncpy")));
|
char *strncpy(char *dest, const char *src, size_t n) __attribute__((weak, alias("rt_strncpy")));
|
||||||
char *strcpy(char *dest, const char *src, size_t n) __attribute__((weak, alias("rt_strcpy")));
|
|
||||||
int strncmp(const char *cs, const char *ct, size_t count) __attribute__((weak, alias("rt_strncmp")));
|
int strncmp(const char *cs, const char *ct, size_t count) __attribute__((weak, alias("rt_strncmp")));
|
||||||
#ifdef RT_USING_HEAP
|
#ifdef RT_USING_HEAP
|
||||||
char *strdup(const char *s) __attribute__((weak, alias("rt_strdup")));
|
char *strdup(const char *s) __attribute__((weak, alias("rt_strdup")));
|
||||||
|
|
|
@ -369,7 +369,7 @@ rt_module_t rt_module_load_from_file(const rt_uint8_t* name, const char* filenam
|
||||||
{
|
{
|
||||||
int fd, length;
|
int fd, length;
|
||||||
struct rt_module* module;
|
struct rt_module* module;
|
||||||
struct _stat s;
|
struct stat s;
|
||||||
char *buffer;
|
char *buffer;
|
||||||
|
|
||||||
stat(filename, &s);
|
stat(filename, &s);
|
||||||
|
|
Loading…
Reference in New Issue