mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-27 17:18: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) {
|
OBJ(uptime) {
|
||||||
format_seconds(p, p_max_size, (int) cur->uptime);
|
format_seconds(p, p_max_size, (int) cur->uptime);
|
||||||
}
|
}
|
||||||
|
#ifdef __linux__
|
||||||
OBJ(user_names) {
|
OBJ(user_names) {
|
||||||
snprintf(p, p_max_size, "%s", cur->users.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) {
|
OBJ(user_number) {
|
||||||
snprintf(p, p_max_size, "%d", cur->users.number);
|
snprintf(p, p_max_size, "%d", cur->users.number);
|
||||||
}
|
}
|
||||||
|
#endif /* __linux__ */
|
||||||
#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
|
#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
|
||||||
|| defined(__OpenBSD__)) && (defined(i386) || defined(__i386__))
|
|| defined(__OpenBSD__)) && (defined(i386) || defined(__i386__))
|
||||||
OBJ(apm_adapter) {
|
OBJ(apm_adapter) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user