diff --git a/arch/sim/src/Makefile b/arch/sim/src/Makefile index 8aced456f7..a454cafc41 100644 --- a/arch/sim/src/Makefile +++ b/arch/sim/src/Makefile @@ -190,6 +190,7 @@ endif ifeq ($(CONFIG_FS_HOSTFS),y) ifneq ($(CONFIG_FS_HOSTFS_RPMSG),y) HOSTSRCS += up_hostfs.c + HOSTCFLAGS += -DCONFIG_NAME_MAX=$(CONFIG_NAME_MAX) up_hostfs.c: hostfs.h diff --git a/include/nuttx/fs/hostfs.h b/include/nuttx/fs/hostfs.h index dd7cb835d8..73f16c970f 100644 --- a/include/nuttx/fs/hostfs.h +++ b/include/nuttx/fs/hostfs.h @@ -91,7 +91,7 @@ /* Should match definition in include/limits.h */ -#define NUTTX_NAME_MAX 32 +#define NUTTX_NAME_MAX CONFIG_NAME_MAX #endif /* __SIM__ */