mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
Security: https://vuxml.freebsd.org/freebsd/2a3be628-ef6e-11ef-85f3-a8a1599412c6.html Security: https://vuxml.freebsd.org/freebsd/f572b9d1-ef6d-11ef-85f3-a8a1599412c6.html Security: https://vuxml.freebsd.org/freebsd/b09d0b3b-ef6d-11ef-85f3-a8a1599412c6.html
20 lines
896 B
C++
20 lines
896 B
C++
--- base/syslog_logging.cc.orig 2025-02-19 07:43:18 UTC
|
|
+++ base/syslog_logging.cc
|
|
@@ -17,7 +17,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>
|
|
@@ -151,7 +151,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
|