Show BSD OSes in frontend OS info

This commit is contained in:
Brad Parker 2017-12-16 10:46:52 -05:00
parent 9f336b705a
commit 03970ddacd

View File

@ -1216,8 +1216,20 @@ static void frontend_unix_get_os(char *s,
return;
sscanf(buffer.release, "%d.%d.%u", major, minor, &krel);
#if defined(__FreeBSD__)
strlcpy(s, "FreeBSD", len);
#elif defined(__NetBSD__)
strlcpy(s, "NetBSD", len);
#elif defined(__OpenBSD__)
strlcpy(s, "OpenBSD", len);
#elif defined(__DragonFly__)
strlcpy(s, "DragonFly BSD", len);
#elif defined(BSD)
strlcpy(s, "BSD", len);
#else
strlcpy(s, "Linux", len);
#endif
#endif
}
#ifdef HAVE_LAKKA