1
0
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:
Nikolas Garofil 2010-02-14 14:00:26 +01:00
parent 064c6f9e42
commit 8db1e1a2a2

View File

@ -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