summaryrefslogtreecommitdiff
path: root/www/iridium/files/patch-base_syslog__logging.cc
diff options
context:
space:
mode:
authorRobert Nagy <robert@openbsd.org>2022-03-30 17:18:34 +0200
committerRene Ladan <rene@FreeBSD.org>2022-03-30 17:20:38 +0200
commit06a832ee8dc55cc8d53f0e49272f33594e941784 (patch)
tree3b8c776119586dfb47bd4f99190cd3ee2127445f /www/iridium/files/patch-base_syslog__logging.cc
parentwww/flexget: update to 3.3.6 (diff)
www/iridium: resurrect, update to 2022.03.99.1
Sync the port to www/chromium and the shared *BSD patchset This port no longer uses Python 2.7
Diffstat (limited to 'www/iridium/files/patch-base_syslog__logging.cc')
-rw-r--r--www/iridium/files/patch-base_syslog__logging.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/iridium/files/patch-base_syslog__logging.cc b/www/iridium/files/patch-base_syslog__logging.cc
new file mode 100644
index 000000000000..5ce641d444ca
--- /dev/null
+++ b/www/iridium/files/patch-base_syslog__logging.cc
@@ -0,0 +1,20 @@
+--- base/syslog_logging.cc.orig 2022-03-28 18:11:04 UTC
++++ base/syslog_logging.cc
+@@ -15,7 +15,7 @@
+ #include "base/strings/string_util.h"
+ #include "base/win/scoped_handle.h"
+ #include "base/win/win_util.h"
+-#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ // <syslog.h> defines LOG_INFO, LOG_WARNING macros that could conflict with
+ // base::LOG_INFO, base::LOG_WARNING.
+ #include <syslog.h>
+@@ -147,7 +147,7 @@ EventLogMessage::~EventLogMessage() {
+
+ if (user_sid != nullptr)
+ ::LocalFree(user_sid);
+-#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ const char kEventSource[] = "chrome";
+ openlog(kEventSource, LOG_NOWAIT | LOG_PID, LOG_USER);
+ // We can't use the defined names for the logging severity from syslog.h