Skip to content

Instantly share code, notes, and snippets.

@DirkyJerky
Last active August 29, 2015 14:04
Show Gist options
  • Save DirkyJerky/607b9ecf2acdfb28989e to your computer and use it in GitHub Desktop.
Save DirkyJerky/607b9ecf2acdfb28989e to your computer and use it in GitHub Desktop.
Temporary fix for OSX compilation of Grive/grive
From 7e766f1c57b46aa492eee5e2113d04cc98a444ce Mon Sep 17 00:00:00 2001
From: Geoff Yoerger <geoffreyiy1@gmail.com>
Date: Sun, 27 Jul 2014 00:10:35 -0500
Subject: [PATCH] Fix compilation errors
---
libgrive/src/drive/State.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libgrive/src/drive/State.cc b/libgrive/src/drive/State.cc
index 2d1dc94..292a750 100644
--- a/libgrive/src/drive/State.cc
+++ b/libgrive/src/drive/State.cc
@@ -248,12 +248,12 @@ void State::Read( const fs::path& filename )
void State::Write( const fs::path& filename ) const
{
Json last_sync ;
- last_sync.Add( "sec", Json(m_last_sync.Sec() ) );
- last_sync.Add( "nsec", Json(m_last_sync.NanoSec() ) );
+ last_sync.Add( "sec", Json((boost::uint64_t) m_last_sync.Sec() ) );
+ last_sync.Add( "nsec", Json((boost::uint64_t) m_last_sync.NanoSec() ) );
Json result ;
result.Add( "last_sync", last_sync ) ;
- result.Add( "change_stamp", Json(m_cstamp) ) ;
+ result.Add( "change_stamp", Json((boost::uint64_t) m_cstamp) ) ;
std::ofstream fs( filename.string().c_str() ) ;
fs << result ;
--
1.8.5.2 (Apple Git-48)
@DirkyJerky
Copy link
Author

Steps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment