parent
9eb10c822d
commit
25f1cf2d2f
|
@ -288,11 +288,11 @@ _timestamp_compare(Image_Timestamp *tstamp, struct stat *st)
|
||||||
if (tstamp->size != st->st_size) return EINA_FALSE;
|
if (tstamp->size != st->st_size) return EINA_FALSE;
|
||||||
if (tstamp->ino != st->st_ino) return EINA_FALSE;
|
if (tstamp->ino != st->st_ino) return EINA_FALSE;
|
||||||
#ifdef _STAT_VER_LINUX
|
#ifdef _STAT_VER_LINUX
|
||||||
#ifdef __USE_MISC
|
#if (defined __USE_MISC && defined st_mtime)
|
||||||
if (tstamp->mtime_nsec != (unsigned long int)st->st_mtim.tv_nsec) return EINA_FALSE;
|
if (tstamp->mtime_nsec != (unsigned long int)st->st_mtim.tv_nsec) return EINA_FALSE;
|
||||||
#else
|
#else
|
||||||
if (tstamp->mtime_nsec != (unsigned long int)st->st_mtimensec) return EINA_FALSE;
|
if (tstamp->mtime_nsec != (unsigned long int)st->st_mtimensec) return EINA_FALSE;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
@ -304,12 +304,12 @@ _timestamp_build(Image_Timestamp *tstamp, struct stat *st)
|
||||||
tstamp->size = st->st_size;
|
tstamp->size = st->st_size;
|
||||||
tstamp->ino = st->st_ino;
|
tstamp->ino = st->st_ino;
|
||||||
#ifdef _STAT_VER_LINUX
|
#ifdef _STAT_VER_LINUX
|
||||||
#ifdef __USE_MISC
|
#if (defined __USE_MISC && defined st_mtime)
|
||||||
tstamp->mtime_nsec = (unsigned long int)st->st_mtim.tv_nsec;
|
tstamp->mtime_nsec = (unsigned long int)st->st_mtim.tv_nsec;
|
||||||
#else
|
#else
|
||||||
tstamp->mtime_nsec = (unsigned long int)st->st_mtimensec;
|
tstamp->mtime_nsec = (unsigned long int)st->st_mtimensec;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static Image_Entry *
|
static Image_Entry *
|
||||||
|
|
Loading…
Reference in New Issue