mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
libobs: Only log distribution info on linux
Add ifdefs to only log the distribution information on linux since this is a platform specific implementation.
This commit is contained in:
parent
ceb1b218f1
commit
bc38bf641b
@ -174,6 +174,7 @@ static void log_kernel_version(void)
|
||||
blog(LOG_INFO, "Kernel Version: %s %s", info.sysname, info.release);
|
||||
}
|
||||
|
||||
#if defined(__linux__)
|
||||
static void log_distribution_info(void)
|
||||
{
|
||||
FILE *fp;
|
||||
@ -216,6 +217,7 @@ static void log_distribution_info(void)
|
||||
dstr_free(&distro);
|
||||
free(line);
|
||||
}
|
||||
#endif
|
||||
|
||||
void log_system_info(void)
|
||||
{
|
||||
@ -225,5 +227,7 @@ void log_system_info(void)
|
||||
#endif
|
||||
log_memory_info();
|
||||
log_kernel_version();
|
||||
#if defined(__linux__)
|
||||
log_distribution_info();
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user