aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2021-05-19 13:43:25 -0500
committerCorinna Vinschen <corinna@vinschen.de>2021-05-20 10:04:07 +0200
commit0c0f3df224c51769d3095769cc78005967495f85 (patch)
tree04b88810412b45f89b414e64dee0e26b3e6dceda /newlib
parent9b24fc95059901966c418c5a777e37a8f11ed9da (diff)
downloadnewlib-0c0f3df224c51769d3095769cc78005967495f85.zip
newlib-0c0f3df224c51769d3095769cc78005967495f85.tar.gz
newlib-0c0f3df224c51769d3095769cc78005967495f85.tar.bz2
sys/stat.h: Enable UTIME_NOW and UTIME_OMIT for RTEMS
Diffstat (limited to 'newlib')
-rw-r--r--newlib/libc/include/sys/stat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
index 68f839b..3d31ba5 100644
--- a/newlib/libc/include/sys/stat.h
+++ b/newlib/libc/include/sys/stat.h
@@ -128,7 +128,7 @@ struct stat
#define S_ISLNK(m) (((m)&_IFMT) == _IFLNK)
#define S_ISSOCK(m) (((m)&_IFMT) == _IFSOCK)
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__rtems__)
/* Special tv_nsec values for futimens(2) and utimensat(2). */
#define UTIME_NOW -2L
#define UTIME_OMIT -1L