From a2b3ee53e085bf40b35d49629efe38ab1e349daa Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 23 Apr 2018 14:39:46 -0400 Subject: [PATCH] fixed build error --- daemon/Daemon.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/daemon/Daemon.h b/daemon/Daemon.h index f3e72904..4491d303 100644 --- a/daemon/Daemon.h +++ b/daemon/Daemon.h @@ -64,7 +64,18 @@ namespace util DaemonWin32 ():isGraceful(false) {} }; - +#elif defined(ANDROID) +#define Daemon i2p::util::DaemonAndroid::Instance() + // dummy, invoked from android/jni/DaemonAndroid.* + class DaemonAndroid: public i2p::util::Daemon_Singleton + { + public: + static DaemonAndroid& Instance() + { + static DaemonAndroid instance; + return instance; + } + }; #else #define Daemon i2p::util::DaemonLinux::Instance() class DaemonLinux : public Daemon_Singleton