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.
master
Ed Maste 2020-04-07 13:18:45 -04:00 committed by Ryan Foster
parent 85f2888048
commit 25d308c727
1 changed files with 2 additions and 2 deletions

View File

@ -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