From 0d4eede114e6408fbd63f126104eca6201ebfb3d Mon Sep 17 00:00:00 2001 From: Matchman Green Date: Sun, 29 Apr 2012 10:20:53 +0800 Subject: [PATCH] changed the ifdef. commented out the upload line as it doesn't work --- src/drive/Drive.cc | 2 +- src/util/OS.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drive/Drive.cc b/src/drive/Drive.cc index 53f7829..c3f09a9 100644 --- a/src/drive/Drive.cc +++ b/src/drive/Drive.cc @@ -199,7 +199,7 @@ std::cout << "downloading " << path << std::endl ; else { std::cout << "local " << filename << " is newer" << std::endl ; - UploadFile( entry ) ; +// UploadFile( entry ) ; } } } diff --git a/src/util/OS.cc b/src/util/OS.cc index ff3d7da..63e0377 100644 --- a/src/util/OS.cc +++ b/src/util/OS.cc @@ -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);