Przeglądaj źródła

Add FreeBSD support for netspeeds, entropy and ip components

master
Michael Buch 5 lat temu
committed by Aaron Marcher
rodzic
commit
86849d295b
3 zmienionych plików z 5 dodań i 2 usunięć
  1. +1
    -1
      components/entropy.c
  2. +3
    -0
      components/ip.c
  3. +1
    -1
      components/netspeeds.c

+ 1
- 1
components/entropy.c Wyświetl plik

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

return bprintf("%ju", num);
}
#elif defined(__OpenBSD__)
#elif defined(__OpenBSD__) | defined(__FreeBSD__)
const char *
entropy(void)
{


+ 3
- 0
components/ip.c Wyświetl plik

@@ -6,6 +6,9 @@
#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"


+ 1
- 1
components/netspeeds.c Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz