From bc38bf641bf26cf3da184e9bf7481f3680d086c3 Mon Sep 17 00:00:00 2001 From: fryshorts Date: Wed, 6 May 2015 21:28:35 +0200 Subject: [PATCH] libobs: Only log distribution info on linux Add ifdefs to only log the distribution information on linux since this is a platform specific implementation. --- libobs/obs-nix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libobs/obs-nix.c b/libobs/obs-nix.c index 1516a78a9..00fb808c0 100644 --- a/libobs/obs-nix.c +++ b/libobs/obs-nix.c @@ -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 } -- GitLab