From 25d308c727c92e716a4140fbda2734f5098eac55 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 7 Apr 2020 13:18:45 -0400 Subject: [PATCH] libobs: Read /etc/os-release on FreeBSD Previously FreeBSD had an optional port that installed /etc/os-release so it was already available on many FreeBSD systems, but os-release is now provided by the base system and will be universally available. --- libobs/obs-nix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs/obs-nix.c b/libobs/obs-nix.c index 71a215d47..31b3bcd3d 100644 --- a/libobs/obs-nix.c +++ b/libobs/obs-nix.c @@ -261,7 +261,7 @@ static void log_kernel_version(void) blog(LOG_INFO, "Kernel Version: %s %s", info.sysname, info.release); } -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD__) static void log_distribution_info(void) { FILE *fp; @@ -322,7 +322,7 @@ void log_system_info(void) log_processor_cores(); log_memory_info(); log_kernel_version(); -#if defined(__linux__) +#if defined(__linux__) || defined(__FreeBSD__) log_distribution_info(); log_desktop_session_info(); #endif