Skip to content

Commit

Permalink
windows sim:add CONFIG_SYSTEM_TIME64 fix windows build error
Browse files Browse the repository at this point in the history
nuttx\arch\sim\src\sim\sim_checkhostfstypes.c(80,1): error C2338: static_assert failed: 'sizeof(((struct nuttx_stat_s *)0)->st_atim) == sizeof(((struct stat *)0)->st_atim)'
nuttx\arch\sim\src\sim\sim_checkhostfstypes.c(81,1): error C2338: static_assert failed: 'offsetof(struct nuttx_stat_s, st_mtim) == offsetof(struct stat, st_mtim)'
nuttx\arch\sim\src\sim\sim_checkhostfstypes.c(81,1): error C2338: static_assert failed: 'sizeof(((struct nuttx_stat_s *)0)->st_mtim) == sizeof(((struct stat *)0)->st_mtim)'
nuttx\arch\sim\src\sim\sim_checkhostfstypes.c(82,1): error C2338: static_assert failed: 'offsetof(struct nuttx_stat_s, st_ctim) == offsetof(struct stat, st_ctim)'

Co-authored-by: chenxiaoyi <[email protected]>
Co-authored-by: xuxin19 <[email protected]>
  • Loading branch information
2 people authored and xiaoxiang781216 committed Aug 14, 2024
1 parent b325ae6 commit 4cd66fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions boards/sim/sim/sim/configs/windows/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ CONFIG_SIM_HOSTFS=y
CONFIG_SIM_STACKSIZE_ADJUSTMENT=10240
CONFIG_SYSTEM_NSH=y
CONFIG_SYSTEM_PING=y
CONFIG_SYSTEM_TIME64=y
CONFIG_TESTING_OSTEST=y

0 comments on commit 4cd66fa

Please sign in to comment.