[PATCH] sys/stat.h: Enable UTIME_NOW and UTIME_OMIT for RTEMS

Corinna Vinschen vinschen@redhat.com
Thu May 20 08:27:11 GMT 2021


On May 19 13:43, Joel Sherrill wrote:
> ---
>  newlib/libc/include/sys/stat.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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
> -- 
> 1.8.3.1

Pushed.


Thanks,
Corinna



More information about the Newlib mailing list