Other platforms are fine because there's ifdef for linux. As you said FreeBSD should also have this the only difference is that the tcpi_last_ack_recv and tcpi_last_data_sent in FreeBSD have __tcpi_last_ack_recv and __tcpi_last_data_sent I don't know how to detect FreeBSD but it should be possible with some ifdefs
Btw. I was googling for 3 hours and this is the only way which works on linux. Regards, Roman On Wed, 20 May 2009 07:17:37 +0200, Raphael Kubo da Costa <kub...@gmail.com> wrote: > Hello, > > Commit 970289 seems to break compilation on non-Linux platforms -- I'm > not sure about Windows, but at least FreeBSD (most certainly OpenBSD > and NetBSD too) doesn't compile anymore because tcp_info seems to be > Linux-only and is being experimentally and partially added to FreeBSD. > > I'm no networking code expert, but isn't there a way to make this more > cross-platform? > > I am CC'ing kde-freebsd as well, but I don't know if all replies will > be sent to both lists. > > Cheers, > Raphael _______________________________________________ kde-freebsd mailing list kde-freebsd@kde.org https://mail.kde.org/mailman/listinfo/kde-freebsd See also http://freebsd.kde.org/ for latest information