Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
rinri
/
slstatus
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Pull Requests
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
Add FreeBSD support for netspeeds, entropy and ip components
master
Michael Buch
hace 5 años
committed by
Aaron Marcher
padre
b6d0bd2fe4
commit
86849d295b
Se han
modificado 3 ficheros
con
5 adiciones
y
2 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+1
-1
components/entropy.c
+3
-0
components/ip.c
+1
-1
components/netspeeds.c
+ 1
- 1
components/entropy.c
Ver fichero
@@ -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
Ver fichero
@@ -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
Ver fichero
@@ -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>
Escribir
Vista previa
Cargando…
Cancelar
Guardar