evas: fix build with uclibc.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 22 Mar 2011 14:29:25 +0000 (14:29 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 22 Mar 2011 14:29:25 +0000 (14:29 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@57991 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/cache/evas_cache_image.c

index d6ac89a..5dcbd9b 100644 (file)
@@ -288,11 +288,11 @@ _timestamp_compare(Image_Timestamp *tstamp, struct stat *st)
    if (tstamp->size != st->st_size) return EINA_FALSE;
    if (tstamp->ino != st->st_ino) return EINA_FALSE;
 #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;
-#else   
+#else
    if (tstamp->mtime_nsec != (unsigned long int)st->st_mtimensec) return EINA_FALSE;
-#endif   
+#endif
 #endif
    return EINA_TRUE;
 }
@@ -304,12 +304,12 @@ _timestamp_build(Image_Timestamp *tstamp, struct stat *st)
    tstamp->size = st->st_size;
    tstamp->ino = st->st_ino;
 #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;
-#else   
+#else
    tstamp->mtime_nsec = (unsigned long int)st->st_mtimensec;
 #endif
-#endif   
+#endif
 }
 
 static Image_Entry *