changed the ifdef. commented out the upload line as it doesn't work

pull/40/head
Matchman Green 2012-04-29 10:20:53 +08:00
parent a9ae269f5c
commit 0d4eede114
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ std::cout << "downloading " << path << std::endl ;
else
{
std::cout << "local " << filename << " is newer" << std::endl ;
UploadFile( entry ) ;
// UploadFile( entry ) ;
}
}
}

View File

@ -40,7 +40,7 @@ DateTime FileMTime( const std::string& filename )
if ( ::stat( filename.c_str(), &s ) != 0 )
throw std::runtime_error( "cannot get file attribute of " + filename ) ;
#ifdef __APPLE__ && __DARWIN_64_BIT_INO_T
#if defined __APPLE__ && defined __DARWIN_64_BIT_INO_T
return DateTime( s.st_mtimespec.tv_sec, s.st_mtimespec.tv_nsec ) ;
#else
return DateTime( s.st_mtim.tv_sec, s.st_mtim.tv_nsec);