Last active
August 29, 2015 14:04
-
-
Save DirkyJerky/607b9ecf2acdfb28989e to your computer and use it in GitHub Desktop.
Temporary fix for OSX compilation of Grive/grive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 7e766f1c57b46aa492eee5e2113d04cc98a444ce Mon Sep 17 00:00:00 2001 | |
From: Geoff Yoerger <[email protected]> | |
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps
git apply 0001-Fix-compilation-errors.patch
cmake . -DJSONC_LIBRARY=/usr/local/lib/libjson-c.dylib
make .