pkgsrc/net/grive/patches/patch-libgrive_src_util_OS.cc
abs d3e46a9d3f Added net/grive version 0.3.0.20130502
The purpose of this project is to provide an independent open
source implementation of Google Drive client for GNU/Linux. It
uses the Google Document List API to talk to the servers in Google.
The code is written in standard C++.

Currently as of version 0.2.0, grive can do two-side synchronization
between the Google Drive and local directory. It can download and
upload changed files. New directories in Google Drive and local
directory will also be downloaded/uploaded.
2014-06-06 14:57:00 +00:00

15 lines
576 B
C++

$NetBSD: patch-libgrive_src_util_OS.cc,v 1.1.1.1 2014/06/06 14:57:00 abs Exp $
Add __NetBSD__ to the 64bit Apple ctimespec stat case
--- libgrive/src/util/OS.cc.orig 2013-05-02 16:40:04.000000000 +0000
+++ libgrive/src/util/OS.cc
@@ -57,7 +57,7 @@ DateTime FileCTime( const std::string& f
) ;
}
-#if defined __APPLE__ && defined __DARWIN_64_BIT_INO_T
+#if defined __NetBSD__ || ( defined __APPLE__ && defined __DARWIN_64_BIT_INO_T )
return DateTime( s.st_ctimespec.tv_sec, s.st_ctimespec.tv_nsec ) ;
#else
return DateTime( s.st_ctim.tv_sec, s.st_ctim.tv_nsec);