diff --git a/components/libc/compilers/armlibc/syscalls.c b/components/libc/compilers/armlibc/syscalls.c index 26ba3796fa45cb8db3a18a7d2ff5fd29f7e4a994..74097da58f72fea6cdf43276772daff5a70f1469 100644 --- a/components/libc/compilers/armlibc/syscalls.c +++ b/components/libc/compilers/armlibc/syscalls.c @@ -282,11 +282,18 @@ int _sys_seek(FILEHANDLE fh, long pos) /** * used by tmpnam() or tmpfile() */ +#if __ARMCC_VERSION >= 6190000 +void _sys_tmpnam(char *name, int fileno, unsigned maxlength) +{ + rt_snprintf(name, maxlength, "tem%03d", fileno); +} +#else int _sys_tmpnam(char *name, int fileno, unsigned maxlength) { rt_snprintf(name, maxlength, "tem%03d", fileno); return 1; } +#endif /* __ARMCC_VERSION >= 6190000 */ char *_sys_command_string(char *cmd, int len) {