[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: zsh-beta

Barry deFreese, le Wed 27 May 2009 23:09:29 -0400, a écrit :
> This block of code in Src/cond.c seems to be the initial issue with 
> zsh-beta:

Yes it is.

>      #if defined(GET_ST_MTIME_NSEC) && defined(GET_ST_ATIME_NSEC)
>              if (!(st = getstat(left)))
>                  return 1;
>              return (st->st_atime == st->st_mtime) ?
>                      GET_ST_ATIME_NSEC(*st) > GET_ST_MTIME_NSEC(*st) :
>                      st->st_atime > st->st_mtime;
>      #else
>              return !((st = getstat(left)) && st->st_atime <= st->st_mtime);
>      #endif

The GET_ST_* macros use the st_atim field, which we do provide (as we
should and as Linux does) when __USE_MISC gets defined by <features.h>.
IIRC the configure script of zsh properly sets some _BSD_SOURCE to get
it but apparently it is not propagated up to here, that's what should be


Reply to: