X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/e2c1e482e004b8f992156bf436d4bf34cee1ee1d..852585b1fced8d0df35b14c17f26c4aac633313b:/rsync.h diff --git a/rsync.h b/rsync.h index 84d1287c..f55e2f79 100644 --- a/rsync.h +++ b/rsync.h @@ -383,6 +383,14 @@ enum delret { #define CAN_CHMOD_SYMLINK 1 #endif +#ifdef HAVE_UTIMENSAT +#ifdef HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC +#define ST_MTIME_NSEC st_mtim.tv_nsec +#elif defined(HAVE_STRUCT_STAT_ST_MTIMENSEC) +#define ST_MTIME_NSEC st_mtimensec +#endif +#endif + #ifdef HAVE_SYS_SELECT_H #include #endif