mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Make sure that conky.cc compiles in FreeBSD
This commit is contained in:
parent
064c6f9e42
commit
8db1e1a2a2
@ -550,6 +550,13 @@ int percent_print(char *buf, int size, unsigned value)
|
||||
return spaced_print(buf, size, "%u", pad_percents, value);
|
||||
}
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
unsigned long long llabs(long long num) {
|
||||
if(num < 0) return -num;
|
||||
else return num;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* converts from bytes to human readable format (K, M, G, T)
|
||||
*
|
||||
* The algorithm always divides by 1024, as unit-conversion of byte
|
||||
|
Loading…
Reference in New Issue
Block a user