mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
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.
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
#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
|
||||
|
|
Loading…
Reference in a new issue