1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

yet another fix for FreeBSD (somehow sneaked through last time)

This commit is contained in:
Phil Sutter 2009-11-14 16:47:04 +01:00
parent 78c4d44ba7
commit 68278e4a45

View File

@ -1774,6 +1774,7 @@ void generate_text_internal(char *p, int p_max_size,
OBJ(uptime) {
format_seconds(p, p_max_size, (int) cur->uptime);
}
#ifdef __linux__
OBJ(user_names) {
snprintf(p, p_max_size, "%s", cur->users.names);
}
@ -1790,6 +1791,7 @@ void generate_text_internal(char *p, int p_max_size,
OBJ(user_number) {
snprintf(p, p_max_size, "%d", cur->users.number);
}
#endif /* __linux__ */
#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
|| defined(__OpenBSD__)) && (defined(i386) || defined(__i386__))
OBJ(apm_adapter) {