comparison util.c @ 1139:160e3f597cec

Old uncommitted fix for Android build
author Michael Pavone <pavone@retrodev.com>
date Mon, 02 Jan 2017 16:33:03 -0800
parents 22e87b739ad6
children 4490c9c12272
comparison
equal deleted inserted replaced
1138:25268334a24c 1139:160e3f597cec
477 return 0; 477 return 0;
478 } 478 }
479 #ifdef __APPLE__ 479 #ifdef __APPLE__
480 return st.st_mtimespec.tv_sec; 480 return st.st_mtimespec.tv_sec;
481 #else 481 #else
482 return st.st_mtim.tv_sec; 482 //Android's Bionic doesn't support the new style so we'll use the old one instead
483 return st.st_mtime;
483 #endif 484 #endif
484 } 485 }
485 486
486 int ensure_dir_exists(char *path) 487 int ensure_dir_exists(char *path)
487 { 488 {