Fix for object store build issues on Android

This commit is contained in:
Scott Kyle 2016-05-31 11:05:12 -07:00
parent 91c87e4de6
commit 7bb8a04359
3 changed files with 4 additions and 4 deletions

View File

@ -19,8 +19,8 @@
#include "impl/external_commit_helper.hpp" #include "impl/external_commit_helper.hpp"
#include "impl/realm_coordinator.hpp" #include "impl/realm_coordinator.hpp"
#include <assert.h> #include <assert.h>
#include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <sstream> #include <sstream>
#include <sys/epoll.h> #include <sys/epoll.h>
@ -36,9 +36,6 @@
#define ANDROID_LOG(...) #define ANDROID_LOG(...)
#endif #endif
#include <errno.h>
#include <sstream>
using namespace realm; using namespace realm;
using namespace realm::_impl; using namespace realm::_impl;

View File

@ -19,6 +19,7 @@
#include "impl/weak_realm_notifier.hpp" #include "impl/weak_realm_notifier.hpp"
#include "shared_realm.hpp" #include "shared_realm.hpp"
#include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <android/log.h> #include <android/log.h>

View File

@ -132,6 +132,8 @@ namespace realm {
// Realm after closing it will produce undefined behavior. // Realm after closing it will produce undefined behavior.
void close(); void close();
bool is_closed() { return m_shared_group == nullptr; }
~Realm(); ~Realm();
void init(std::shared_ptr<_impl::RealmCoordinator> coordinator); void init(std::shared_ptr<_impl::RealmCoordinator> coordinator);