From e39c1618bbd0e8d28ec3289bdffa3b10cf94ef64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 26 Jun 2015 13:09:30 +0200 Subject: Add freebsd support in kopete connectionstatus plugin [taken from FreeBSD kopete patches] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kopete/plugins/connectionstatus/connectionstatusplugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kopete/plugins/connectionstatus/connectionstatusplugin.cpp') diff --git a/kopete/plugins/connectionstatus/connectionstatusplugin.cpp b/kopete/plugins/connectionstatus/connectionstatusplugin.cpp index fbbe7c8b..708764ac 100644 --- a/kopete/plugins/connectionstatus/connectionstatusplugin.cpp +++ b/kopete/plugins/connectionstatus/connectionstatusplugin.cpp @@ -67,7 +67,11 @@ void ConnectionStatusPlugin::slotCheckStatus() // netstat -rn in slotProcessStdout() to see if it mentions the // default gateway. If so, we're connected, if not, we're offline m_process = new TDEProcess; +#if defined(__FreeBSD__) + *m_process << "netstat" << "-rfinet"; +#else *m_process << "netstat" << "-r"; +#endif connect( m_process, TQT_SIGNAL( receivedStdout( TDEProcess *, char *, int ) ), this, TQT_SLOT( slotProcessStdout( TDEProcess *, char *, int ) ) ); connect( m_process, TQT_SIGNAL( processExited( TDEProcess * ) ), this, TQT_SLOT( slotProcessExited( TDEProcess * ) ) ); -- cgit v1.2.1