From de81bb0aacf207725444572cb24d6b711742bc5a Mon Sep 17 00:00:00 2001 From: kinsei0916 Date: Mon, 20 Sep 2021 10:15:01 +0900 Subject: [PATCH] Fix link error for Emscripten --- src/logging.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/logging.cc b/src/logging.cc index 4309a3d..6eebcb9 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -2148,6 +2148,7 @@ static string ShellEscape(const string& src) { // log_mutex. static bool SendEmailInternal(const char*dest, const char *subject, const char*body, bool use_logging) { +#ifdef __USE_POSIX2 if (dest && *dest) { if ( use_logging ) { VLOG(1) << "Trying to send TITLE:" << subject @@ -2190,6 +2191,7 @@ static bool SendEmailInternal(const char*dest, const char *subject, } } } +#endif return false; }