aboutsummaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_syslog__logging.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/chromium/files/patch-base_syslog__logging.cc')
-rw-r--r--www/chromium/files/patch-base_syslog__logging.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/chromium/files/patch-base_syslog__logging.cc b/www/chromium/files/patch-base_syslog__logging.cc
new file mode 100644
index 000000000000..fa3ce0e07bca
--- /dev/null
+++ b/www/chromium/files/patch-base_syslog__logging.cc
@@ -0,0 +1,20 @@
+--- base/syslog_logging.cc.orig 2019-05-01 17:21:47 UTC
++++ base/syslog_logging.cc
+@@ -9,7 +9,7 @@
+ #include "base/bind.h"
+ #include "base/callback_helpers.h"
+ #include "base/debug/stack_trace.h"
+-#elif defined(OS_LINUX)
++#elif defined(OS_LINUX) || defined(OS_BSD)
+ // <syslog.h> defines LOG_INFO, LOG_WARNING macros that could conflict with
+ // base::LOG_INFO, base::LOG_WARNING.
+ #include <syslog.h>
+@@ -94,7 +94,7 @@ EventLogMessage::~EventLogMessage() {
+ 1, 0, strings, nullptr)) {
+ stream() << " !!NOT ADDED TO EVENTLOG!!";
+ }
+-#elif defined(OS_LINUX)
++#elif defined(OS_LINUX) || defined(OS_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