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
parent
85f2888048
commit
25d308c727
|
@ -261,7 +261,7 @@ static void log_kernel_version(void)
|
||||||
blog(LOG_INFO, "Kernel Version: %s %s", info.sysname, info.release);
|
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)
|
static void log_distribution_info(void)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
|
@ -322,7 +322,7 @@ void log_system_info(void)
|
||||||
log_processor_cores();
|
log_processor_cores();
|
||||||
log_memory_info();
|
log_memory_info();
|
||||||
log_kernel_version();
|
log_kernel_version();
|
||||||
#if defined(__linux__)
|
#if defined(__linux__) || defined(__FreeBSD__)
|
||||||
log_distribution_info();
|
log_distribution_info();
|
||||||
log_desktop_session_info();
|
log_desktop_session_info();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue