comparison util.c @ 1021:4a92889e2889 v0.4.0

Fix OS X build
author Michael Pavone <pavone@retrodev.com>
date Wed, 04 May 2016 00:50:20 -0700
parents 51885857c019
children 86ed81bb574f
comparison
equal deleted inserted replaced
1019:e34334e6c682 1021:4a92889e2889
465 { 465 {
466 struct stat st; 466 struct stat st;
467 if (stat(path, &st)) { 467 if (stat(path, &st)) {
468 return 0; 468 return 0;
469 } 469 }
470 #ifdef __APPLE__
471 return st.st_mtimespec.tv_sec;
472 #else
470 return st.st_mtim.tv_sec; 473 return st.st_mtim.tv_sec;
474 #endif
471 } 475 }
472 476
473 int ensure_dir_exists(char *path) 477 int ensure_dir_exists(char *path)
474 { 478 {
475 struct stat st; 479 struct stat st;