From 992719730f355ed3132c3204153f919822870074 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 25 Dec 2023 18:52:53 +0900 Subject: [PATCH] Fix hostfs after uid/gid changes This fixes a regression in https://github.com/apache/nuttx/pull/10869 --- include/nuttx/fs/hostfs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/nuttx/fs/hostfs.h b/include/nuttx/fs/hostfs.h index 07e5f1f00b..cc175cbc45 100644 --- a/include/nuttx/fs/hostfs.h +++ b/include/nuttx/fs/hostfs.h @@ -108,8 +108,13 @@ /* These must match the definitions in include/sys/types.h */ typedef int16_t nuttx_blksize_t; +#ifdef CONFIG_SMALL_MEMORY typedef int16_t nuttx_gid_t; typedef int16_t nuttx_uid_t; +#else +typedef unsigned int nuttx_gid_t; +typedef unsigned int nuttx_uid_t; +#endif typedef uint32_t nuttx_dev_t; typedef uint16_t nuttx_ino_t; typedef uint16_t nuttx_nlink_t;