summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-06-26 13:09:30 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-06-26 13:31:16 +0200
commit7f6f068c2d2fe7bf85e484379a331368c5e1e76e (patch)
tree85bfde08a8bbf7fc6a4fd2f959fc70a4f874a268
parentbbf336489ccb7dc0c08af795fb0ba223a8692db5 (diff)
downloadtdenetwork-7f6f068c.tar.gz
tdenetwork-7f6f068c.zip
Add freebsd support in kopete connectionstatus plugin
[taken from FreeBSD kopete patches] Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit e39c1618bbd0e8d28ec3289bdffa3b10cf94ef64)
-rw-r--r--kopete/plugins/connectionstatus/connectionstatusplugin.cpp4
1 files changed, 4 insertions, 0 deletions
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 * ) ) );