mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 21:50:32 -04:00
20 lines
871 B
C++
20 lines
871 B
C++
--- base/syslog_logging.cc.orig 2021-01-07 00:36:18 UTC
|
|
+++ base/syslog_logging.cc
|
|
@@ -13,7 +13,7 @@
|
|
#include "base/strings/string_util.h"
|
|
#include "base/win/scoped_handle.h"
|
|
#include "base/win/win_util.h"
|
|
-#elif defined(OS_LINUX) || defined(OS_CHROMEOS)
|
|
+#elif defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
|
|
// <syslog.h> defines LOG_INFO, LOG_WARNING macros that could conflict with
|
|
// base::LOG_INFO, base::LOG_WARNING.
|
|
#include <syslog.h>
|
|
@@ -134,7 +134,7 @@ EventLogMessage::~EventLogMessage() {
|
|
|
|
if (user_sid != nullptr)
|
|
::LocalFree(user_sid);
|
|
-#elif defined(OS_LINUX) || defined(OS_CHROMEOS)
|
|
+#elif defined(OS_LINUX) || defined(OS_CHROMEOS) || 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
|