提交 bc38bf64 编写于 作者: F fryshorts

libobs: Only log distribution info on linux

Add ifdefs to only log the distribution information on linux since this
is a platform specific implementation.
上级 ceb1b218
......@@ -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
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册