| Server IP : 82.208.35.60 / Your IP : 216.73.216.168 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/benchmarks/dbs/files/ |
Upload File : |
--- src/dbsd.c.orig 1998-06-08 00:23:26 UTC +++ src/dbsd.c @@ -51,6 +51,9 @@ #define DBSD +#ifdef HAVE_SYS_PARAM_H +#include <sys/param.h> +#endif #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -80,7 +83,7 @@ #include <sys/fcntl.h> #endif -#if !defined(bsdi) +#if (!defined(BSD) || (BSD < 199306)) #include <malloc.h> #endif @@ -1002,8 +1005,13 @@ struct timeval origin_time; d[i].snd_max = htonl((int)rt.d[i].td_cb.snd_max); d[i].snd_cwnd = htonl((int)rt.d[i].td_cb.snd_cwnd); d[i].snd_ssthresh = htonl((int)rt.d[i].td_cb.snd_ssthresh); +#if !defined(__FreeBSD_version) || (__FreeBSD_version < 400009) d[i].t_idle = htonl((int)rt.d[i].td_cb.t_idle); d[i].t_rtt = htonl((int)rt.d[i].td_cb.t_rtt); +#else + d[i].t_idle = htonl((int)rt.d[i].td_cb.t_rcvtime); + d[i].t_rtt = htonl((int)rt.d[i].td_cb.t_rtttime); +#endif d[i].t_rtseq = htonl((int)rt.d[i].td_cb.t_rtseq); d[i].t_srtt = htonl((int)rt.d[i].td_cb.t_srtt); d[i].t_rttvar = htonl((int)rt.d[i].td_cb.t_rttvar);