exfat: fix comlile break because tzset undefine

Change-Id: Ia2a9b5474d5fd7b66de2353b9c62483af7d35c8a
Signe-off-by: Jiuzhu Dong <dongjiuzhu1@xiaom.com>
This commit is contained in:
Jiuzhu Dong
2021-09-13 11:58:47 +08:00
parent dcebb60441
commit a3de95c7d7
+7
View File
@@ -24,6 +24,7 @@
#include <nuttx/config.h>
#include <time.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>
@@ -1405,3 +1406,9 @@ static int exfatfs_format(FAR struct exfat *ef, FAR const char *spec,
return exfat_close(dev);
}
#ifndef CONFIG_LIBC_LOCALTIME
void tzset(void)
{
}
#endif