diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-12-07 18:22:05 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-12-07 18:22:05 +0000 |
commit | 5ea987eadef4c2cc50adc6fa114e4e9099dc94e6 (patch) | |
tree | 6e03aa039b92f54e9a8b7c5acd20ddab9b9de15c /lib/stat-time.h | |
parent | c25ad39393734a7cfd94120b831ce94ff7f3ae15 (diff) | |
download | coreutils-5ea987eadef4c2cc50adc6fa114e4e9099dc94e6.tar.xz |
* lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
porting problem reported by Georg Schwarz in
<http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
* m4/stat-time.m4 (gl_STAT_TIME): Likewise.
Diffstat (limited to 'lib/stat-time.h')
-rw-r--r-- | lib/stat-time.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/stat-time.h b/lib/stat-time.h index f72faf918..734e36657 100644 --- a/lib/stat-time.h +++ b/lib/stat-time.h @@ -31,7 +31,11 @@ These macros are private to stat-time.h. */ #if defined HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC -# define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim) +# ifdef TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC +# define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim) +# else +# define STAT_TIMESPEC_NS(st, st_xtim) ((st)->st_xtim.tv_nsec) +# endif #elif defined HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC # define STAT_TIMESPEC(st, st_xtim) ((st)->st_xtim##espec) #elif defined HAVE_STRUCT_STAT_ST_ATIMENSEC |