mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 04:17:33 +00:00
yet another fix for FreeBSD (somehow sneaked through last time)
This commit is contained in:
parent
78c4d44ba7
commit
68278e4a45
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user