all repos — slstatus @ 86849d295b1eb9e18746d8a4fa196fe7b9dce0dc

my build of slstatus (tools.suckless.org/slstatus/)

Add FreeBSD support for netspeeds, entropy and ip components
Michael Buch michaelbuch12@gmail.com
Wed, 30 Jan 2019 11:21:54 +0000
commit

86849d295b1eb9e18746d8a4fa196fe7b9dce0dc

parent

b6d0bd2fe45283b24e3e69a61671bd3ac615a9b4

3 files changed, 5 insertions(+), 2 deletions(-)

jump to
M components/entropy.ccomponents/entropy.c

@@ -17,7 +17,7 @@ }

return bprintf("%ju", num); } -#elif defined(__OpenBSD__) +#elif defined(__OpenBSD__) | defined(__FreeBSD__) const char * entropy(void) {
M components/ip.ccomponents/ip.c

@@ -6,6 +6,9 @@ #include <string.h>

#if defined(__OpenBSD__) #include <sys/types.h> #include <sys/socket.h> +#elif defined(__FreeBSD__) + #include <netinet/in.h> + #include <sys/socket.h> #endif #include "../util.h"
M components/netspeeds.ccomponents/netspeeds.c

@@ -58,7 +58,7 @@

return fmt_human((txbytes - oldtxbytes) * 1000 / interval, 1024); } -#elif defined(__OpenBSD__) +#elif defined(__OpenBSD__) | defined(__FreeBSD__) #include <string.h> #include <ifaddrs.h> #include <sys/types.h>