From 3b6b05d70be88ceb3f719360a975b09d5c0ef1de Mon Sep 17 00:00:00 2001 From: kinsei0916 Date: Mon, 20 Sep 2021 15:49:14 +0900 Subject: [PATCH] Use __EMSCRIPTEN__ instead of __USE_POSIX2 --- src/logging.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging.cc b/src/logging.cc index 6eebcb9..b89042f 100644 --- a/src/logging.cc +++ b/src/logging.cc @@ -2148,7 +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 +#ifndef __EMSCRIPTEN__ if (dest && *dest) { if ( use_logging ) { VLOG(1) << "Trying to send TITLE:" << subject