[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: coreutils 5.93 on IRIX 5.3
From: |
Paul Eggert |
Subject: |
Re: coreutils 5.93 on IRIX 5.3 |
Date: |
Wed, 07 Dec 2005 00:18:57 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
address@hidden (Georg Schwarz) writes:
> cfe: Error: ./stat-time.h, line 93: Type struct timestruc of returning
> expression is incompatible with type struct timespec of function return
> type
> return ((st)-> st_atim) ;
Does the following patch to lib/stat-time.h fix things for you? It's
not a complete patch but I thought I'd ask to make sure this is the
right idea.
--- stat-time.h.~1.2.~ 2005-09-16 23:54:22.000000000 -0700
+++ stat-time.h 2005-12-07 00:06:42.000000000 -0800
@@ -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