summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-24 06:09:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-24 06:09:36 +0000
commit1fdcb0e5ceda9b53334b322093df879b8ff52799 (patch)
treeda3f10d5d11a3a392707f83da02a1bfc04293436 /wifi
parent5ec1af2231a7b4de5b26e0208b957b1de167b6c9 (diff)
downloadtdenetwork-1fdcb0e5ceda9b53334b322093df879b8ff52799.tar.gz
tdenetwork-1fdcb0e5ceda9b53334b322093df879b8ff52799.zip
Fixes for new iwlib
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1106905 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'wifi')
-rw-r--r--wifi/configure.in.in3
-rw-r--r--wifi/interface_wireless_wirelessextensions.cpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/wifi/configure.in.in b/wifi/configure.in.in
index f796f816..0c883800 100644
--- a/wifi/configure.in.in
+++ b/wifi/configure.in.in
@@ -11,6 +11,9 @@ if test "x$with_wifi" != xno; then
AC_TRY_COMPILE(
[
#include <iwlib.h>
+ #ifndef PROC_NET_DEV
+ #define PROC_NET_DEV "/proc/net/dev"
+ #endif
],
[
const char *s = PROC_NET_DEV;
diff --git a/wifi/interface_wireless_wirelessextensions.cpp b/wifi/interface_wireless_wirelessextensions.cpp
index 58abe9c9..874eefb3 100644
--- a/wifi/interface_wireless_wirelessextensions.cpp
+++ b/wifi/interface_wireless_wirelessextensions.cpp
@@ -30,6 +30,10 @@
#include <arts/referenceclean.h>
#endif
+#ifndef PROC_NET_DEV
+#define PROC_NET_DEV "/proc/net/dev"
+#endif
+
#include <iostream>
#include <string>
#include <klocale.h>