This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 83f2650a95ded7b9b9ce01db03398fdddb6f0ca1 Author: Marco Casaroli <[email protected]> AuthorDate: Mon Oct 19 01:49:33 2026 +0200 include/sys/stat.h: Define UTIME_OMIT for C++ too. Commit 545a93301ba removed UTIME_OMIT from C++, because libc++ uses utimensat() when UTIME_OMIT is defined, and NuttX did not have utimensat() at that time. That commit says to revert it when utimensat() is available. utimensat() is in libc now (lib_utimensat.c), and the VFS handles UTIME_OMIT and UTIME_NOW. Define UTIME_OMIT for C++ again. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- include/sys/stat.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/sys/stat.h b/include/sys/stat.h index fb3f6a38e62..8974cb7d9c2 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -112,9 +112,7 @@ /* Special value for tv_nsec field of timespec */ #define UTIME_NOW ((1l << 30) - 1l) -#ifndef __cplusplus -# define UTIME_OMIT ((1l << 30) - 2l) -#endif +#define UTIME_OMIT ((1l << 30) - 2l) /* The following macros are required by POSIX to achieve backward * compatibility with earlier versions of struct stat.
